るりまサーチ

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

別のキーワード

  1. irb/input-method gets
  2. _builtin define_method
  3. irb/input-method new
  4. irb/input-method encoding
  5. irb/input-method readable_atfer_eof?

ライブラリ

検索結果

RubyVM::InstructionSequence#absolute_path -> String | nil (24238.0)

self が表す命令シーケンスの絶対パスを返します。

...d>@<compiled>>
iseq.absolute_path
# => nil

例2: RubyVM::InstructionSequence.compile_file を使用した場合

# /tmp/method.rb
def hello
puts "hello, world"
end

# irb
> iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.absolute_path # => "/tmp/method.r...
...b"

@
see RubyVM::InstructionSequence#path...