Method: CSV.parse_line
- Defined in:
- lib/csv.rb
.parse_line(line, **options) ⇒ Object
This method is a shortcut for converting a single line of a CSV String into an Array. Note that if line contains multiple rows, anything beyond the first row is ignored.
The options parameter can be anything CSV::new() understands.
699 700 701 |
# File 'lib/csv.rb', line 699 def parse_line(line, **) new(line, **).shift end |