Created
May 31, 2011 18:02
-
-
Save rramsden/1000982 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
| class A | |
| def initialize | |
| @stub = lambda {|&block| [1,2,3,4].each{|n| block.call(n)}} | |
| end | |
| def each(&block) | |
| @stub.call(&block) | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment