Method: Xctracker::StandardOutputReporter#table_for

Defined in:
lib/xctracker/reporters/standard_output_reporter.rb

#table_for(executions) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/xctracker/reporters/standard_output_reporter.rb', line 10

def table_for(executions)
  Terminal::Table.new do |t|
    t << ['File', 'Line', 'Method name', 'Time(ms)']
    t << :separator
    executions.each do |execution|
      t << [execution.path, execution.line, execution.method_name, execution.time]
    end
  end
end