るりまサーチ

最速Rubyリファレンスマニュアル検索!
1682件ヒット [101-200件を表示] (0.137秒)
トップページ > クエリ:I[x] > クエリ:struct[x]

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. matrix i
  5. csv to_i

ライブラリ

キーワード

検索結果

<< < 1 2 3 4 ... > >>

REXML::StreamListener#instruction(name, instruction) -> () (12400.0)

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

...(PI)をパースしたときに呼び出されるコールバックメソッドです。

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

=== 例
<?xml-stylesheet type="text/css" href="style.css"?>
というPI...
...対し
name: "xml-stylesheet"
i
nstruction: " type=\"text/css\" href=\"style.css\""
という引数が渡されます。...

RubyVM::InstructionSequence.load_from_binary(binary) -> RubyVM::InstructionSequence (12400.0)

RubyVM::InstructionSequence#to_binaryにより作られたバイナリフォーマットの文字列からiseqのオブジェクトをロードします。

...RubyVM::InstructionSequence#to_binaryにより作られたバイナリフォーマットの文字列からiseqのオブジェクトをロードします。

このローダーは検証機構をもっておらず、壊れたり改変されたバイナリを読み込むと深刻な問題を引き起...
...りません。自分が変換したバイナリデータを使うべきです。

//emlist[例][ruby]{
i
seq = RubyVM::InstructionSequence.compile('num = 1 + 2')
binary = iseq.to_binary
RubyVM::InstructionSequence.load_from_binary(binary).eval # => 3
//}

@see RubyVM::InstructionSequence#to_binary...

VALUE rb_time_timespec_new(const struct timespec *ts, int offset) (12400.0)

引数 ts、offset を元に Time オブジェクトを作成して返します。

...元に Time オブジェクトを作成して返します。

@param ts timespec 構造体のポインタ

@param offset 協定世界時との時差(秒)。
-86400 < offset < 86400 の場合は指定した時差に、INT_MAX
を指定した場合は地方時、INT_MAX-1...
...を指定した場合は UTC に
なります。

@raise ArgumentError offset に上述の範囲以外の値を指定した場合に発生し
ます。...

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

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

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

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

RubyVM::INSTRUCTION_NAMES -> [String] (12300.0)

RubyVM の命令シーケンスの名前の一覧を返します。

...RubyVM の命令シーケンスの名前の一覧を返します。

@see RubyVM::InstructionSequence...

絞り込み条件を変える

RubyVM::InstructionSequence.load_from_binary_extra_data(binary) -> String (12300.0)

バイナリフォーマットの文字列から埋め込まれたextra_dataを取り出します。

...埋め込まれたextra_dataを取り出します。

//emlist[例][ruby]{
i
seq = RubyVM::InstructionSequence.compile('num = 1 + 2')
binary = iseq.to_binary("extra_data")
RubyVM::InstructionSequence.load_from_binary_extra_data(binary) # => extra_data
//}

@see RubyVM::InstructionSequence#to_binary...

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

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

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

RubyVM::InstructionSequence#inspect -> String (12200.0)

self の情報をラベルとパスを含んだ人間に読みやすい文字列にして返します。

...んだ人間に読みやすい文字列にして返します。

//emlist[例][ruby]{
i
seq = RubyVM::InstructionSequence.compile('num = 1 + 2')
i
seq.inspect # => "<RubyVM::InstructionSequence:<compiled>@<compiled>>"
//}

@see RubyVM::InstructionSequence#label,
RubyVM::InstructionSequence#path...

RubyVM::InstructionSequence#to_binary(extra_data = nil) -> String (12200.0)

バイナリフォーマットでシリアライズされたiseqのデータを文字列として返します。 RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。

...れたiseqのデータを文字列として返します。
RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。

引数の extra_data はバイナリデータと共に保存されます。
RubyVM::InstructionSequence...
....load_from_binary_extra_data メソッドでこの文字列にアクセス出来ます。

注意: 変換後のバイナリデータはポータブルではありません。 to_binary で得たバイナリデータは他のマシンに移動できません。他のバージョンや他のアーキ...
...テクチャのRubyで作られたバイナリデータは使用できません。

//emlist[例][ruby]{
i
seq = RubyVM::InstructionSequence.compile('num = 1 + 2')
i
seq.to_binary("extra_data")

# ※表示の都合上改行しているが実際は改行はない
# => "YARB\x02\x00\x00\x00\x03\x00\x00...

VALUE rb_struct_iv_get(VALUE c, const char *name) (12200.0)

この関数は deprecated です。内部関数になりました。

この関数は deprecated です。内部関数になりました。

絞り込み条件を変える

Struct#to_s -> String (12130.0)

self の内容を人間に読みやすい文字列にして返します。

...述は Struct の下位クラスのインスタンスに対して呼び
出す事を想定しています。Struct.new は Struct の下位クラスを作成する点に
注意してください。

//emlist[例][ruby]{
Customer = Struct.new(:name, :address, :zip)
joe = Customer.new("Joe Smith", "12...
...3 Maple, Anytown NC", 12345)
joe.inspect # => "#<struct Customer name=\"Joe Smith\", address=\"123 Maple, Anytown NC\", zip=12345>"
//}...

Struct#select {|i| ... } -> [object] (12126.0)

構造体のメンバの値に対してブロックを評価した値が真であった要素を全て含 む配列を返します。真になる要素がひとつもなかった場合は空の配列を返しま す。

.../emlist[例][ruby]{
Lots = Struct.new(:a, :b, :c, :d, :e, :f)
l = Lots.new(11, 22, 33, 44, 55, 66)
l.select {|v| (v % 2).zero? } #=> [22, 44, 66]
//}

[注意] 本メソッドの記述は Struct の下位クラスのインスタンスに対して呼び
出す事を想定しています。Struct.ne...
...w は Struct の下位クラスを作成する点に
注意してください。

@see Enumerable#select...
<< < 1 2 3 4 ... > >>