Created
November 29, 2016 09:29
-
-
Save ch1c0t/c5e0a8de8de14d10bec49839fb6e2fee 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 Hobby | |
class Test | |
class Report | |
def initialize exchanges | |
@exchanges = exchanges | |
end | |
def ok? | |
@exchanges.all? &:passed? | |
end | |
include Enumerable | |
extend Forwardable | |
delegate [:each, :[], :size] => :@exchanges | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment