Method: CSV::Table#push
- Defined in:
- lib/csv/table.rb
#push(*rows) ⇒ Object
A shortcut for appending multiple rows. Equivalent to:
rows.each { |row| self << row }
This method returns the table for chaining.
260 261 262 263 264 |
# File 'lib/csv/table.rb', line 260 def push(*rows) rows.each { |row| self << row } self # for chaining end |