11件ヒット
[1-11件を表示]
(0.102秒)
ライブラリ
- ビルトイン (11)
検索結果
-
RubyVM
:: InstructionSequence # to _ a -> Array (8.0) -
self の情報を 14 要素の配列にして返します。
...lass、:rescue、:ensure、:eval、:main、
:defined_guard のいずれか。
: locals
全ての引数名、ローカル変数名からなる Symbol の配列。
: args
引数の指定が必須のメソッド、ブロックの引数の個数。あるいは以下のよう
な配列。......ytecode
命令シーケンスを構成する命令とオペランドの配列の配列。
//emlist[例][ruby]{
require 'pp'
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
pp iseq.to_a
# ※ Ruby 2.5.0 での実行結果
# => ["YARVInstructionSequence/SimpleDataFormat",
# 2,
# 0,
# 1...