Parent

Set

Public Instance Methods

delete_if() click to toggle source
# File lib/backports/1.9.2/stdlib/set.rb, line 2
def delete_if
  block_given? or return enum_for(__method__)
  to_a.each { |o| @hash.delete(o) if yield(o) }
  self
end
keep_if() click to toggle source
# File lib/backports/1.9.2/stdlib/set.rb, line 8
def keep_if
  block_given? or return enum_for(__method__)
  to_a.each { |o| @hash.delete(o) unless yield(o) }
  self
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.