るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.038秒)
トップページ > クエリ:IO[x] > クエリ:ins[x] > クエリ:to_a[x]

別のキーワード

  1. streamui ins
  2. rubygems/user_interaction ins
  3. ins
  4. ins_methods_i
  5. ins gem::streamui

ライブラリ

検索結果

RubyVM::InstructionSequence#to_a -> Array (24107.0)

self の情報を 14 要素の配列にして返します。

...ます。

: magic

データフォーマットを示す文字列。常に
"YARVInstructionSequence/SimpleDataFormat"。

: major_version

命令シーケンスのメジャーバージョン。

: minor_version

命令シーケンスのマイナーバージョン。

: format_type

デー...
...gs

引数の指定が必須のメソッド、ブロックの引数の個数。あるいは以下のよう
な配列。

[required_argc, [optional_arg_labels, ...],
splat_index, post_splat_argc, post_splat_index,
block_index, simple]

より詳細な情報については、vm_cor...
...とオペランドの配列の配列。


//emlist[例][ruby]{
require 'pp'

iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
pp iseq.to_a
# ※ Ruby 2.5.0 での実行結果
# => ["YARVInstructionSequence/SimpleDataFormat",
# 2,
# 0,
# 1,
# {:arg_size=>0, :local_size=>2, :stack_max=>2},
#...