Created
January 9, 2011 05:20
-
-
Save bakkdoor/771443 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def mytimes(block) | |
times(&block) | |
end |
This file contains hidden or 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
=============== :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