Class: Pairwise::Formatter::Csv

Inherits:
Object
  • Object
show all
Defined in:
lib/pairwise/formatter/csv.rb

Instance Method Summary collapse

Constructor Details

#initialize(out) ⇒ Csv

Returns a new instance of Csv.



5
6
7
# File 'lib/pairwise/formatter/csv.rb', line 5

def initialize(out)
  @out = out
end

Instance Method Details

#display(test_data, input_labels) ⇒ Object



9
10
11
12
13
14
# File 'lib/pairwise/formatter/csv.rb', line 9

def display(test_data, input_labels)
  @out.puts input_labels.join(',')
  test_data.each do |data|
    @out.puts data.join(',')
  end
end