Skip to content

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

class method

RubyVM::InstructionSequence.load_from_binary

RubyVM::InstructionSequence.load_from_binary(binary) → iseq

Load an iseq object from binary format String object created by RubyVM::InstructionSequence.to_binary.

This loader does not have a verifier, so that loading broken/modified binary causes critical problem.

You should not load binary data provided by others. You should only use binary data translated by yourself.