Class: Jasmine::Formatters::Multi

Inherits:
Object
  • Object
show all
Defined in:
lib/jasmine/formatters/multi.rb

Instance Method Summary collapse

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