File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ Without +write_headers+:
19
19
20
20
With +write_headers+":
21
21
CSV.open(file_path,'w',
22
- :write_headers=> true,
22
+ :write_headers => true,
23
23
:headers => ['Name','Value']
24
24
) do |csv|
25
25
csv << ['foo', '0']
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ This example defines and uses a custom write converter to strip whitespace from
148
148
149
149
==== Recipe: Specify Multiple Write Converters
150
150
151
- Use option <tt>:write_converters</tt> and multiple custom coverters
151
+ Use option <tt>:write_converters</tt> and multiple custom converters
152
152
to convert field values when generating \CSV.
153
153
154
154
This example defines and uses two custom write converters to strip and upcase generated fields:
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ Use instance method CSV#each with option +headers+ to read a source \String one
83
83
CSV.new(string, headers: true).each do |row|
84
84
p row
85
85
end
86
- Ouput :
86
+ Output :
87
87
#<CSV::Row "Name":"foo" "Value":"0">
88
88
#<CSV::Row "Name":"bar" "Value":"1">
89
89
#<CSV::Row "Name":"baz" "Value":"2">
You can’t perform that action at this time.
0 commit comments