summaryrefslogtreecommitdiff
path: root/lib/set.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/set.rb')
-rw-r--r--lib/set.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/set.rb b/lib/set.rb
index 1df42e08d2..1dcfbfcdef 100644
--- a/lib/set.rb
+++ b/lib/set.rb
@@ -335,7 +335,7 @@ class Set
def ==(set)
equal?(set) and return true
- set.is_a?(type) && size == set.size or return false
+ set.is_a?(Set) && size == set.size or return false
set.each { |o| include?(o) or return false }
@@ -347,7 +347,7 @@ class Set
end
def eql?(o)
- @hash == o.hash
+ @hash.hash == o.hash
end
def classify