Created
November 11, 2014 20:22
-
-
Save tibbon/85c6cb97541728dbf3d1 to your computer and use it in GitHub Desktop.
Viewing Ruby Bytecode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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