From 0b98b9a95dc3bdedd620ccaf015607a5a959a06e Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 26 Apr 2011 15:57:04 +0000 Subject: * strip trailing spaces. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/csv.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/csv.rb b/lib/csv.rb index 45273f9978..1aad2f3085 100644 --- a/lib/csv.rb +++ b/lib/csv.rb @@ -154,11 +154,11 @@ require "stringio" # CSV(csv = "") { |csv_str| csv_str << %w{my data here} } # to a String # CSV($stderr) { |csv_err| csv_err << %w{my data here} } # to $stderr # CSV($stdin) { |csv_in| csv_in.each { |row| p row } } # from $stdin -# +# # == Advanced Usage -# +# # === Wrap an IO Object -# +# # csv = CSV.new(io, options) # # ... read (with gets() or each()) from and write (with <<) to csv here ... # @@ -836,7 +836,7 @@ class CSV # # This method assumes you want the Table.headers(), unless you explicitly # pass :write_headers => false. - # + # def to_csv(options = Hash.new) wh = options.fetch(:write_headers, true) @table.inject(wh ? [headers.to_csv(options)] : [ ]) do |rows, row| -- cgit v1.2.3