108件ヒット
[101-108件を表示]
(0.016秒)
別のキーワード
種類
- 特異メソッド (60)
- インスタンスメソッド (48)
ライブラリ
- ビルトイン (108)
クラス
キーワード
-
absolute
_ path (12) -
base
_ label (12) - compile (12)
-
compile
_ option= (12) - label (12)
- new (12)
- of (12)
- path (12)
検索結果
-
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...