Type:
Class

The InstructionSequence class represents a compiled sequence of instructions for the Ruby Virtual Machine.

With it, you can get a handle to the instructions that make up a method or a proc, compile strings of Ruby code down to VM instructions, and disassemble instruction sequences to strings for easy inspection. It is mostly useful if you want to learn how the Ruby VM works, but it also lets you control various settings for the Ruby iseq compiler.

You can find the source for the VM instructions in insns.def in the Ruby source.

The instruction sequence results will almost certainly change as Ruby changes, so example output in this documentation may be different from what you see.

path

path() Instance Public methods Returns the path of this instruction sequence

2015-05-13 21:29:03
disasm

InstructionSequence.disasm(body) â strInstructionSequence.disassemble(body) â str Class Public methods

2015-05-13 20:39:29
disassemble 2

iseq.disassemble â str Instance Public methods Returns the instruction sequence

2015-05-13 20:59:37
compile_file

InstructionSequence.compile_file(file[, options]) â iseq Class Public methods Takes

2015-05-13 20:28:26
absolute_path

absolute_path() Instance Public methods Returns the absolute path of this instruction

2015-05-13 20:52:28
compile_option=

InstructionSequence.compile_option = options Class Public methods Sets the

2015-05-13 20:37:26
disassemble

InstructionSequence.disasm(body) â strInstructionSequence.disassemble(body) â str Class Public methods

2015-05-13 20:40:17
disasm 2

iseq.disasm â str Instance Public methods Returns the instruction sequence as

2015-05-13 20:58:33
of

of(p1) Class Public methods Returns the instruction sequence containing the

2015-05-13 20:45:50
line_trace_specify

line_trace_specify(p1, p2) Instance Public methods Experimental MRI

2015-05-13 21:25:11