Method: CSV::Table#by_row!

Defined in:
lib/csv.rb

#by_row!Object

Switches the mode of this table to row mode. All calls to indexing and iteration methods will work with rows until the mode is changed again.

This method returns the table and is safe to chain.



665
666
667
668
669
# File 'lib/csv.rb', line 665

def by_row!
  @mode = :row

  self
end