Method: CSV::Table#by_col!
- Defined in:
- lib/csv.rb
#by_col! ⇒ Object
Switches the mode of this table to column mode. All calls to indexing and iteration methods will work with columns until the mode is changed again.
This method returns the table and is safe to chain.
613 614 615 616 617 |
# File 'lib/csv.rb', line 613 def by_col! @mode = :col self end |