Created
May 19, 2015 17:03
-
-
Save billdueber/6d501f730c79f6a74498 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
class A | |
include Enumerable | |
def each | |
(1..10).each do |i| | |
raise RuntimeError.new("SIX") if i == 6 | |
yield i | |
end | |
end | |
end | |
a = A.new | |
a.each {|i| puts i} # how do I make this not bail out? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment