Method: Set#include?
- Defined in:
- lib/set.rb
permalink #include?(o) ⇒ Boolean Also known as: member?, ===
Returns true if the set contains the given object.
Note that include?
and member?
do not test member equality using ==
as do other Enumerables.
See also Enumerable#include?
246 247 248 |
# File 'lib/set.rb', line 246 def include?(o) @hash[o] end |