るりまサーチ

最速Rubyリファレンスマニュアル検索!
6件ヒット [1-6件を表示] (0.102秒)
トップページ > クエリ:I[x] > クエリ:Point[x] > クラス:TracePoint[x] > クエリ:eval_script[x]

別のキーワード

  1. point new
  2. point on_curve?
  3. point eql?
  4. point to_bn
  5. point invert!

ライブラリ

検索結果

TracePoint#eval_script -> String | nil (27208.0)

script_compiledイベント発生時にコンパイルされたソースコードを返します。 ファイルから読み込んだ場合は、nilを返します。

...script_compiledイベント発生時にコンパイルされたソースコードを返します。
ファイルから読み込んだ場合は、nilを返します。

//emlist[例][ruby]{
TracePoint
.new(:script_compiled) do |tp|
p tp.eval_script # => "puts 'hello'"
end.enable do
eval("puts 'he...
...llo'")
end
//}

@raise RuntimeError :script_compiled イベントのための
イベントフックの外側で実行した場合に発生します。...