* 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:
jeg2 2012-12-07 17:42:16 +00:00
parent 0dc6b83935
commit 5b1065f3fe
3 changed files with 27 additions and 18 deletions

View file

@ -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
#