aboutsummaryrefslogtreecommitdiffstats
path: root/lib/set.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/set.rb')
-rw-r--r--lib/set.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/set.rb b/lib/set.rb
index a3f185538f..59d70e82ca 100644
--- a/lib/set.rb
+++ b/lib/set.rb
@@ -208,6 +208,11 @@ class Set
end
# Returns true if the set contains the given object.
+ #
+ # Note that <code>include?</code> and <code>member?</code> do not test member
+ # equality using <code>==</code> as do other Enumerables.
+ #
+ # See also Enumerable#include?
def include?(o)
@hash[o]
end