summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorjeg2 <jeg2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-07 17:42:16 +0000
committerjeg2 <jeg2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-07 17:42:16 +0000
commit5b1065f3fee2a3cb0095a28a5bedaa3f74f09a5b (patch)
tree85bc2c434a39ae32cbe2eb475bb6835a168bca58 /lib
parent0dc6b83935ce6b35d8443f51b787ac2300197c12 (diff)
* 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
Diffstat (limited to 'lib')
-rw-r--r--lib/csv.rb3
1 files changed, 2 insertions, 1 deletions
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
#