Skip to content

Instantly share code, notes, and snippets.

@ch1c0t
Created November 29, 2016 09:29
Show Gist options
  • Save ch1c0t/c5e0a8de8de14d10bec49839fb6e2fee to your computer and use it in GitHub Desktop.
Save ch1c0t/c5e0a8de8de14d10bec49839fb6e2fee to your computer and use it in GitHub Desktop.
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