Method: CSV::Table#push

Defined in:
lib/csv.rb

#push(*rows) ⇒ Object

A shortcut for appending multiple rows. Equivalent to:

rows.each { |row| self << row }

This method returns the table for chaining.



792
793
794
795
796
# File 'lib/csv.rb', line 792

def push(*rows)
  rows.each { |row| self << row }

  self  # for chaining
end