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.

compile

InstructionSequence.compile(source[, file[, path[, line[, options]]]]) â iseq Class Public methods

2015-05-13 20:26:02
new

InstructionSequence.new(source[, file[, path[, line[, options]]]]) â iseq Class Public methods

2015-05-13 20:41:52
label

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

2015-05-13 21:18:52
base_label

base_label() Instance Public methods Returns the base label of this instruction

2015-05-13 20:56:10
to_a

iseq.to_a â ary Instance Public methods Returns an Array with 14 elements representing

2015-05-13 21:32:15
inspect

inspect() Instance Public methods Returns a human-readable string representation

2015-05-13 21:15:56
line_trace_all

line_trace_all() Instance Public methods Experimental MRI specific feature

2015-05-13 21:24:03
eval

iseq.eval â obj Instance Public methods Evaluates the instruction sequence

2015-05-13 21:06:20
compile_option

InstructionSequence.compile_option â options Class Public methods Returns a

2015-05-13 20:31:02
disassemble

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

2015-05-13 20:40:17