るりまサーチ

最速Rubyリファレンスマニュアル検索!
44件ヒット [1-44件を表示] (0.112秒)
トップページ > 種類:インスタンスメソッド[x] > クエリ:RubyVM::InstructionSequence.compile_file[x]

別のキーワード

  1. instructionsequence disassemble
  2. instructionsequence disasm
  3. instructionsequence compile_file
  4. instructionsequence compile_option
  5. instructionsequence compile

ライブラリ

キーワード

検索結果

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

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

...piled>@<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/meth...

RubyVM::InstructionSequence#base_label -> String (13.0)

self が表す命令シーケンスの基本ラベルを返します。

...@<compiled>>
iseq.base_label
# => "<compiled>"

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

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

# irb
> iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.base_label # => "<main>"

...

RubyVM::InstructionSequence#label -> String (13.0)

self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、 モジュール名などで構成されます。

...iled>@<compiled>>
iseq.label
# => "<compiled>"

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

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

# irb
> iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.label # => "<main>"

例3:...

RubyVM::InstructionSequence#path -> String (13.0)

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

...piled>@<compiled>>
iseq.path
# => "<compiled>"

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

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

# irb
> iseq = RubyVM::InstructionSequence.compile_file('method.rb')
> iseq.path # => "method.rb"

@see RubyVM...