Created
August 31, 2015 22:42
-
-
Save richo/7c4bb7abd08800840f3e 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
#!/usr/bin/env ruby | |
class Butts | |
def foo | |
a = 1 | |
a += 42 | |
puts "hi #{a}" | |
end | |
end | |
puts RubyVM::InstructionSequence.disasm(Butts.new.method(:foo)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment