Class: Jasmine::Formatters::Multi
- Inherits:
-
Object
- Object
- Jasmine::Formatters::Multi
- Defined in:
- lib/jasmine/formatters/multi.rb
Instance Method Summary collapse
- #done(details = {}) ⇒ Object
- #format(results) ⇒ Object
-
#initialize(formatters) ⇒ Multi
constructor
A new instance of Multi.
Constructor Details
#initialize(formatters) ⇒ Multi
Returns a new instance of Multi.
4 5 6 |
# File 'lib/jasmine/formatters/multi.rb', line 4 def initialize(formatters) @formatters = formatters end |
Instance Method Details
#done(details = {}) ⇒ Object
12 13 14 |
# File 'lib/jasmine/formatters/multi.rb', line 12 def done(details = {}) @formatters.each { |formatter| formatter.done(details) } end |
#format(results) ⇒ Object
8 9 10 |
# File 'lib/jasmine/formatters/multi.rb', line 8 def format(results) @formatters.each { |formatter| formatter.format(results) } end |