120件ヒット
[101-120件を表示]
(0.050秒)
別のキーワード
種類
- 特異メソッド (60)
- インスタンスメソッド (48)
- 関数 (12)
ライブラリ
- ビルトイン (108)
クラス
キーワード
-
absolute
_ path (12) -
base
_ label (12) - compile (12)
-
compile
_ option= (12) - label (12)
- new (12)
- of (12)
- path (12)
-
rb
_ compile _ file (12)
検索結果
先頭2件
-
RubyVM
:: InstructionSequence # path -> String (3012.0) -
self が表す命令シーケンスの相対パスを返します。
...ubyVM::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... -
RubyVM
:: InstructionSequence . compile _ option=(options) (3012.0) -
命令シーケンスのコンパイル時のデフォルトの最適化オプションを引数 options で指定します。
...:debug_level をキーに指定した場合は値を数値で指定します。
.new、.compile、.compile_file メソッドの実行の際に option 引数を指定し
た場合はその実行のみ最適化オプションを変更する事もできます。
@see RubyVM::InstructionSequ......ence.new,
RubyVM::InstructionSequence.compile,
RubyVM::InstructionSequence.compile_file...