Skip to content

Instantly share code, notes, and snippets.

@richo
Created June 29, 2015 21:24
Show Gist options
  • Select an option

  • Save richo/708a32d0d1771048bd92 to your computer and use it in GitHub Desktop.

Select an option

Save richo/708a32d0d1771048bd92 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
def add1(a)
a + 1
end
puts RubyVM::InstructionSequence.disasm(method(:add1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment