るりまサーチ

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

別のキーワード

  1. _builtin file?
  2. _builtin file
  3. fileutils compare_file
  4. file mtime
  5. file ctime

ライブラリ

キーワード

検索結果

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

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

...ed>>
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.rb"

@see R...

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

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

...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>"

例3:

# /tmp/m...

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

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

...d>>
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:

# /tmp/method...

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

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

...ed>>
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::InstructionS...