End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Set#delete
delete(o)
lib/set.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/set.rb, line 539
def delete(o)
@hash.delete(o)
self
end
Deletes the given object from the set and returns self. Use subtract to delete many items at once.
See also
#delete?
#compare_by_identity?
#compare_by_identity
#delete_if
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0