mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 10:03:59 +02:00
* lib/csv.rb: A fix for row comparison by Stephen Wattam. [Bug #7528]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0dc6b83935
commit
5b1065f3fe
3 changed files with 27 additions and 18 deletions
|
@ -475,7 +475,8 @@ class CSV
|
|||
# same order as +other+.
|
||||
#
|
||||
def ==(other)
|
||||
@row == other.row
|
||||
return @row == other.row if other.is_a? CSV::Row
|
||||
@row == other
|
||||
end
|
||||
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue