mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/csv.rb: Fixed test failures caused by changes to Ruby.
* test/csv/tc_serialization, test/csv/tc_csv_parsing, test/csv/tc_features: Fixed test failures caused by changes to Ruby. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
33a071016b
commit
a2443bdcf9
5 changed files with 21 additions and 10 deletions
|
@ -13,7 +13,7 @@ require "csv"
|
|||
# An example of how to provide custom CSV serialization.
|
||||
class Hash
|
||||
def self.csv_load( meta, headers, fields )
|
||||
self[*headers.zip(fields).flatten.map { |e| eval(e) }]
|
||||
self[*headers.zip(fields).to_a.flatten.map { |e| eval(e) }]
|
||||
end
|
||||
|
||||
def csv_headers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue