るりまサーチ

最速Rubyリファレンスマニュアル検索!
1100件ヒット [401-500件を表示] (0.106秒)

別のキーワード

  1. struct new
  2. mkmf have_struct_member
  3. struct []
  4. struct each
  5. struct select

キーワード

検索結果

<< < ... 3 4 5 6 7 ... > >>

REXML::Element#instructions -> [REXML::Instraction] (6101.0)

すべての instruction 子ノードの配列を返します。

...すべての instruction 子ノードの配列を返します。

返される配列は freeze されます。...

REXML::Parsers::PullEvent#instruction? -> bool (6101.0)

XML処理命令なら真を返します。

XML処理命令なら真を返します。

REXML::SAX2Listener#processing_instruction(target, data) -> () (6101.0)

XML 処理命令(PI)に対し呼び出されるコールバックメソッドです。

XML 処理命令(PI)に対し呼び出されるコールバックメソッドです。

@param target ターゲット名が文字列で渡されます
@param data 処理命令の内容が文字列で渡されます

Time#deconstruct_keys(array_of_names_or_nil) -> Hash (6101.0)

パターンマッチに使用する名前と値の Hash を返します。

...全てをパターンマッチに使用します。

//emlist[例][ruby]{
t = Time.utc(2022, 10, 5, 21, 25, 30)

if t in wday: 3, day: ..7 # deconstruct_keys が使われます
puts "first Wednesday of the month"
end
#=> "first Wednesday of the month" が出力される

case t
in year: ...2022...

MatchData#deconstruct -> [String] (3101.0)

$1, $2, ... を格納した配列を返します。

$1, $2, ... を格納した配列を返します。

MatchData#to_a と異なり $& を要素に含みません。
グループにマッチした部分文字列がなければ対応する要素は nil になります。

//emlist[例][ruby]{
/(foo)(bar)(BAZ)?/ =~ "foobarbaz"
p $~.to_a # => ["foobar", "foo", "bar", nil]
p $~.captures # => ["foo", "bar", nil]
//}

@see MatchData#to_a, MatchData#named_captures, d...

絞り込み条件を変える

REXML::Instruction#clone -> REXML::Instruction (3101.0)

self を複製します。

self を複製します。

OpenStruct#dig(key, ...) -> object | nil (3007.0)

self 以下のネストしたオブジェクトを dig メソッドで再帰的に参照して返し ます。途中のオブジェクトが nil であった場合は nil を返します。

...require 'ostruct'
address = OpenStruct.new('city' => "Anytown NC", 'zip' => 12345)
person = OpenStruct.new('name' => 'John Smith', 'address' => address)
person.dig(:address, 'zip') # => 12345
person.dig(:business_address, 'zip') # => nil

@see Array#dig, Hash#dig, Struct#dig...

Fiddle::CStruct#to_i -> Integer (3001.0)

保持している構造体の先頭アドレスを整数で返します。

保持している構造体の先頭アドレスを整数で返します。

Fiddle::CStruct#to_ptr -> Fiddle::Pointer (3001.0)

保持している構造体へのポインタを返します。

保持している構造体へのポインタを返します。

OpenSSL::ASN1::Constructive#each {|item| ... } -> self (3001.0)

構造型のデータに含まれる各要素に対してブロックを 評価します。

構造型のデータに含まれる各要素に対してブロックを
評価します。

絞り込み条件を変える

OpenSSL::ASN1::Constructive#tagging -> Symbol | nil (3001.0)

タグ付けの方式を返します。

...タグ付けの方式を返します。

:IMPLICIT、:EXPLICIT、nil のいずれかを返します。

タグ(OpenSSL::ASN1::ASN1Data#tag)が :UNIVERSAL ならば
この値は無視されます。

nil は :IMPLICIT と同義です。

@see OpenSSL::ASN1::Constructive#tagging=...
<< < ... 3 4 5 6 7 ... > >>