class Gargor::OptimizeReporter

Public Class Methods

table(from,to) click to toggle source
# File lib/gargor/reporter.rb, line 6
def table from,to
  table = Terminal::Table.new :headings => ['param', 'from', 'to'] do |t|
    from.params.each do |name,f|
      t << [name,f,to.params[name]]
    end
    t << :separator
    t << ['Fitness', from.fitness,to.fitness]
  end
  [1,2].map { |n| table.align_column(n, :right) }
  table.style={:border_y => "", :border_i => "-"}
  table 
end