Skip to content

Instantly share code, notes, and snippets.

@tibbon
Created November 11, 2014 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tibbon/85c6cb97541728dbf3d1 to your computer and use it in GitHub Desktop.
Save tibbon/85c6cb97541728dbf3d1 to your computer and use it in GitHub Desktop.
Viewing Ruby Bytecode
code = <<SRC
puts "Hello World"
SRC
bytecode = RubyVM::InstructionSequence.compile(code)
puts bytecode.disasm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment