るりまサーチ

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

別のキーワード

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

ライブラリ

クラス

キーワード

検索結果

<< < 1 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...
<< < 1 2 >>