Skip to content

Instantly share code, notes, and snippets.

@bakkdoor
Created January 9, 2011 02:43
Show Gist options
  • Save bakkdoor/771368 to your computer and use it in GitHub Desktop.
Save bakkdoor/771368 to your computer and use it in GitHub Desktop.
implementation of Fixnum#times:
============== :"times:" ===============
Arguments: 1 required, 1 total
Locals: 1: block
Stack size: 3
Lines to IP: 22: -1..0, 21: 1..2, 22: 3..7
0000: push_self
0001: push_local 0 # block
0003: allow_private
0004: send_stack_with_block :times, 0
0007: ret
----------------------------------------
def times: block {
times(&block)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment