Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/csv/core_ext/string.rb

Instance Method Summary collapse

Instance Method Details

#parse_csv(**options) ⇒ Object

Equivalent to CSV::parse_line(self, options)

"CSV,data".parse_csv
  #=> ["CSV", "data"]


6
7
8
# File 'lib/csv/core_ext/string.rb', line 6

def parse_csv(**options)
  CSV.parse_line(self, **options)
end