るりまサーチ

最速Rubyリファレンスマニュアル検索!
108件ヒット [101-108件を表示] (0.016秒)
トップページ > クエリ:instruction[x] > クエリ:compile_file[x]

別のキーワード

  1. mkmf try_compile
  2. kernel try_compile
  3. _builtin compile
  4. ripper compile_error
  5. _builtin compile_file

ライブラリ

クラス

キーワード

検索結果

<< < 1 2 >>

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

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

...ます。

例1:irb で実行した場合

iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<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::InstructionSequence#absolute_path...
<< < 1 2 >>