4件ヒット
[1-4件を表示]
(0.211秒)
検索結果
先頭4件
-
RubyVM
:: InstructionSequence # path -> String (72397.0) -
self が表す命令シーケンスの相対パスを返します。
self が表す命令シーケンスの相対パスを返します。
self の作成時に指定した文字列を返します。self を文字列から作成していた
場合は "<compiled>" を返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.path
# => "<compiled>"
例2: RubyVM::InstructionSequence.compi... -
IRB
:: Context # irb _ path -> String (63610.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
IRB
:: Context # irb _ path=(val) (63610.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (45697.0) -
self が表す命令シーケンスの絶対パスを返します。
self が表す命令シーケンスの絶対パスを返します。
self を文字列から作成していた場合は nil を返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.absolute_path
# => nil
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method....