Skip to content

Instantly share code, notes, and snippets.

@bakkdoor
Created January 9, 2011 05:20
Show Gist options
  • Save bakkdoor/771443 to your computer and use it in GitHub Desktop.
Save bakkdoor/771443 to your computer and use it in GitHub Desktop.
def mytimes(block)
times(&block)
end
=============== :mytimes ===============
Arguments: 1 required, 1 total
Locals: 1: block
Stack size: 4
Lines to IP: 2: -1..-1, 3: 0..18
0000: push_self
0001: push_local 0 # block
0003: dup_top
0004: is_nil
0005: goto_if_true 14
0007: push_cpath_top
0008: find_const 0
0010: swap_stack
0011: send_stack :__from_block__, 1
0014: allow_private
0015: send_stack_with_block :times, 0
0018: ret
----------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment