Skip to content

Instantly share code, notes, and snippets.

@richo
Created August 31, 2015 22:42
Show Gist options
  • Save richo/7c4bb7abd08800840f3e to your computer and use it in GitHub Desktop.
Save richo/7c4bb7abd08800840f3e to your computer and use it in GitHub Desktop.
#!/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