summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/set.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/set.rb b/lib/set.rb
index f00cfac0c5..a3f185538f 100644
--- a/lib/set.rb
+++ b/lib/set.rb
@@ -78,7 +78,7 @@ class Set
# If a block is given, the elements of enum are preprocessed by the
# given block.
def initialize(enum = nil, &block) # :yields: o
- @hash ||= Hash.new
+ @hash ||= Hash.new(false)
enum.nil? and return
@@ -209,7 +209,7 @@ class Set
# Returns true if the set contains the given object.
def include?(o)
- @hash.include?(o)
+ @hash[o]
end
alias member? include?