Class: Lacerda::Reporters::Multi
- Inherits:
-
Lacerda::Reporter
- Object
- Lacerda::Reporter
- Lacerda::Reporters::Multi
- Defined in:
- lib/lacerda/reporters/multi.rb
Instance Method Summary collapse
-
#initialize(*reporters) ⇒ Multi
constructor
A new instance of Multi.
Methods inherited from Lacerda::Reporter
#check_consumer, #check_consuming, #check_published_object, #check_publisher, #check_publishing, #object_publish_specification_errors, #result
Constructor Details
#initialize(*reporters) ⇒ Multi
Returns a new instance of Multi.
6 7 8 9 10 11 |
# File 'lib/lacerda/reporters/multi.rb', line 6 def initialize(*reporters) @reporters = [] [reporters].flatten.each do |r| @reporters << Lacerda.validate_reporter(r) end end |