public Method

Set.delete_if() { |o| ... }

Deletes every element of the set for which block evaluates to true, and returns self.

Source Code

# File set.rb, line 230
def delete_if
  @hash.delete_if { |o,| yield(o) }
  self
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.