From 5b1065f3fee2a3cb0095a28a5bedaa3f74f09a5b Mon Sep 17 00:00:00 2001 From: jeg2 Date: Fri, 7 Dec 2012 17:42:16 +0000 Subject: * 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 --- lib/csv.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/csv.rb') diff --git a/lib/csv.rb b/lib/csv.rb index 58953a2bf9..a0209223c2 100644 --- a/lib/csv.rb +++ b/lib/csv.rb @@ -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 # -- cgit v1.2.3