Class: OutputCollection

Inherits:
Object
  • Object
show all
Defined in:
lib/outputs/output_collection.rb

Instance Method Summary collapse

Constructor Details

#initializeOutputCollection

Returns a new instance of OutputCollection.


3
4
5
# File 'lib/outputs/output_collection.rb', line 3

def initialize
  @outputs = []
end

Instance Method Details

#add(output) ⇒ Object


13
14
15
# File 'lib/outputs/output_collection.rb', line 13

def add(output)
  @outputs << output
end

#add_result(result) ⇒ Object


17
18
19
20
21
# File 'lib/outputs/output_collection.rb', line 17

def add_result(result)
  @outputs.each do |output|
    output.add_result(result)
  end
end

#start_runObject


7
8
9
10
11
# File 'lib/outputs/output_collection.rb', line 7

def start_run
  @outputs.each do |output|
    output.start_run
  end
end