19件ヒット
[1-19件を表示]
(0.085秒)
別のキーワード
ライブラリ
- ビルトイン (19)
キーワード
-
instruction
_ sequence (7) -
raised
_ exception (12)
検索結果
先頭2件
-
TracePoint
# instruction _ sequence -> RubyVM :: InstructionSequence (6520.0) -
script_compiledイベント発生時にコンパイルされた RubyVM::InstructionSequenceインスタンスを返します。
...パイルされた
RubyVM::InstructionSequenceインスタンスを返します。
//emlist[例][ruby]{
TracePoint.new(:script_compiled) do |tp|
p tp.instruction_sequence # => <RubyVM::InstructionSequence:block in <main>@(eval):1>
end.enable do
eval("puts 'hello'")
end
//}
@raise RuntimeError... -
TracePoint
# raised _ exception -> Exception (6320.0) -
発生した例外を返します。
...例外を返します。
@raise RuntimeError :raise イベントのためのイベントフックの外側で実行し
た場合に発生します。
//emlist[例][ruby]{
trace = TracePoint.new(:raise) do |tp|
tp.raised_exception # => #<ZeroDivisionError: divided by 0>
end
tr...