Class: FFWD::Core::Reporter

Inherits:
Object
  • Object
show all
Defined in:
lib/ffwd/core/reporter.rb

Instance Method Summary collapse

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