33件ヒット
[1-33件を表示]
(0.025秒)
トップページ > :RubyVM::InstructionSequence#absolute_path
別のキーワード
種類
- インスタンスメソッド (22)
- 文書 (11)
ライブラリ
- ビルトイン (22)
クラス
キーワード
-
NEWS for Ruby 2
. 0 . 0 (11) -
absolute
_ path (11) - path (11)
検索結果
先頭3件
-
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (23000.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.... -
NEWS for Ruby 2
. 0 . 0 (6.0) -
NEWS for Ruby 2.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...ionSequence.of to get the instruction sequence
from a method or a block.
* 追加: RubyVM::InstructionSequence#path,
RubyVM::InstructionSequence#absolute_path,
RubyVM::InstructionSequence#label,
RubyVM::InstructionSequence#base_label,
RubyVM::InstructionSequence#fir... -
RubyVM
:: InstructionSequence # path -> String (6.0) -
self が表す命令シーケンスの相対パスを返します。
..."<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...