public Method

Set.delete?(o)

Deletes the given object from the set and returns self. If the object is not in the set, returns nil.

Source Code

# File set.rb, line 220
def delete?(o)
  if include?(o)
    delete(o)
  else
    nil
  end
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.