Class: Ruport::Data::Graph
Instance Method Summary collapse
Methods included from Table::FromXLS
Methods included from Table::FromODS
Instance Method Details
#initialize_copy(from) ⇒ Object
38 39 40 41 42 43 |
# File 'lib/ruport/util/graph.rb', line 38 def initialize_copy(from) super data.zip(from.data).each do |new_row,old_row| new_row.gid = old_row.gid end end |
#series(data, gid = nil) ⇒ Object
33 34 35 36 |
# File 'lib/ruport/util/graph.rb', line 33 def series(data,gid=nil) self << data self[-1].gid = gid end |