Skip to content

Instantly share code, notes, and snippets.

@cheald
Created October 23, 2012 16:23
Show Gist options
  • Save cheald/3939859 to your computer and use it in GitHub Desktop.
Save cheald/3939859 to your computer and use it in GitHub Desktop.
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