Created
October 23, 2012 16:23
-
-
Save cheald/3939859 to your computer and use it in GitHub Desktop.
This file contains 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
module Enumerable | |
def each_with_position *args, &block | |
puts "#each_with_position called!" | |
# EachWithPosition::Handler.new(:each, self, *args, &block).invoke! | |
end | |
end | |
[].each_with_position # => "#each_with_position called!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment