Class: CheekyDreams::CompositeAuditor

Inherits:
Object
  • Object
show all
Defined in:
lib/cheeky-dreams.rb

Instance Method Summary collapse

Constructor Details

#initialize(*auditors) ⇒ CompositeAuditor

Returns a new instance of CompositeAuditor.



105
106
107
# File 'lib/cheeky-dreams.rb', line 105

def initialize *auditors
  @auditors = auditors
end

Instance Method Details

#audit(type, message) ⇒ Object



109
110
111
# File 'lib/cheeky-dreams.rb', line 109

def audit type, message
  @auditors.each { |auditor| auditor.audit type, message }
end