Method: CSV#headers
- Defined in:
- lib/csv.rb
#headers ⇒ Object
:call-seq:
csv.headers -> object
Returns the value that determines whether headers are used; used for parsing; see Option headers:
CSV.new('').headers # => nil
2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 |
# File 'lib/csv.rb', line 2106 def headers if @writer @writer.headers else parsed_headers = parser.headers return parsed_headers if parsed_headers raw_headers = @parser_options[:headers] raw_headers = nil if raw_headers == false raw_headers end end |