File: //usr/share/ri/3.0.0/system/CSV/header_convert-i.ri
U:RDoc::AnyMethod[iI"header_convert:ETI"CSV#header_convert;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [I"0The block need not return a \String object:;To:RDoc::Markup::Verbatim; [ I")csv = CSV.open(path, headers: true)
;TI">csv.header_convert {|header, field_info| header.to_sym }
;TI"table = csv.read
;TI"(table.headers # => [:Name, :Value]
;T:@format0o;
; [I";If +converter_name+ is given, the block is not called:;To;; [ I")csv = CSV.open(path, headers: true)
;TI"Pcsv.header_convert(:downcase) {|header, field_info| fail 'Cannot happen' }
;TI"table = csv.read
;TI"*table.headers # => ["name", "value"]
;T;0S:RDoc::Markup::Rule:weightio:RDoc::Markup::BlankLine o;
; [I"URaises a parse-time exception if +converter_name+ is not the name of a built-in ;TI"field converter:;To;; [ I")csv = CSV.open(path, headers: true)
;TI"!csv.header_convert(:nosuch)
;TI"H# Raises NoMethodError (undefined method `arity' for nil:NilClass)
;TI"
csv.read;T;0:
@fileI"lib/csv.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(name = nil, &converter);T@)FI"CSV;TcRDoc::NormalClass00