InstructionSequence.disasm(body) â strInstructionSequence.disassemble(body) â str
Class Public methods
Takes body, a Method or Proc object, and returns a String with the human
readable instructions for body.
For a Method object:
# /tmp/method.rb
def hello
puts "hello, world"
end
puts RubyVM::InstructionSequence.disasm(method(:hello))
Produces:
== disasm: <RubyVM::InstructionSequence:hello@/tmp/method.rb>============
0000 trace 8