Class: CheekyDreams::CompositeAuditor
- Inherits:
-
Object
- Object
- CheekyDreams::CompositeAuditor
- Defined in:
- lib/cheeky-dreams.rb
Instance Method Summary collapse
- #audit(type, message) ⇒ Object
-
#initialize(*auditors) ⇒ CompositeAuditor
constructor
A new instance of CompositeAuditor.
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, @auditors.each { |auditor| auditor.audit type, } end |