Created
April 19, 2016 15:22
-
-
Save tenderlove/b592197ad6fab797690ceb2073744f19 to your computer and use it in GitHub Desktop.
This file contains 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
ruby_code = <<-eorby | |
def foo bar, baz | |
p bar | |
p baz | |
end | |
foo | |
eorby | |
puts RubyVM::InstructionSequence.new(ruby_code).disasm | |
puts RubyVM::InstructionSequence.new(ruby_code, nil, nil, 0, :operands_unification => false).disasm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment