Method: Set#delete?
- Defined in:
- lib/set.rb
#delete?(o) ⇒ Boolean
Deletes the given object from the set and returns self. If the object is not in the set, returns nil.
539 540 541 |
# File 'lib/set.rb', line 539 def delete?(o) delete(o) if include?(o) end |