Method: CSV.parse_line
- Defined in:
- lib/csv.rb
.parse_line(line, options = Hash.new) ⇒ 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.
1309 1310 1311 |
# File 'lib/csv.rb', line 1309 def self.parse_line(line, = Hash.new) new(line, ).shift end |