Ruby 2.6.0 リファレンスマニュアル > ライブラリ一覧 > 組み込みライブラリ > TracePointクラス > instruction_sequence
instruction_sequence -> RubyVM::InstructionSequence
[permalink][rdoc]script_compiledイベント発生時にコンパイルされた RubyVM::InstructionSequenceインスタンスを返します。
TracePoint.new(:script_compiled) do |tp|
p tp.instruction_sequence # => <RubyVM::InstructionSequence:block in <main>@(eval):1>
end.enable do
eval("puts 'hello'")
end