summaryrefslogtreecommitdiff
path: root/lib/csv.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csv.rb')
-rw-r--r--lib/csv.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/csv.rb b/lib/csv.rb
index 58953a2bf9b..a0209223c2e 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
#