Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

TracePoint#instruction_sequence

() -> ::RubyVM::InstructionSequence
instruction_sequence

Returns the compiled instruction sequence represented by a RubyVM::InstructionSequence instance on the :script_compiled event.

Note that this method is CRuby-specific.

See also #inspect #lineno #event #method_id also in 4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0