Class: FFWD::Core::Reporter
- Inherits:
-
Object
- Object
- FFWD::Core::Reporter
- Defined in:
- lib/ffwd/core/reporter.rb
Instance Method Summary collapse
-
#initialize(reporters) ⇒ Reporter
constructor
A new instance of Reporter.
- #report!(diff) ⇒ Object
Constructor Details
#initialize(reporters) ⇒ Reporter
Returns a new instance of Reporter.
20 21 22 |
# File 'lib/ffwd/core/reporter.rb', line 20 def initialize reporters @reporters = reporters end |
Instance Method Details
#report!(diff) ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/ffwd/core/reporter.rb', line 24 def report!(diff) @reporters.each do |reporter| reporter.report!(diff) do |d| yield d end end end |