Method: Mach5::Config#add_serie
- Defined in:
- lib/mach5-tools/config.rb
#add_serie(benchmark, &block) ⇒ Object
79 80 81 82 83 84 |
# File 'lib/mach5-tools/config.rb', line 79 def add_serie(benchmark, &block) @serie_label = nil @serie_color = nil block.call if block @chart_series << {commit_id: benchmark.keys[0], benchmark_id: benchmark.values[0], label: @serie_label, color: @serie_color} end |