public Method

Set.add(o)

Adds the given object to the set and returns self. Use merge to add several elements at once.

Source Code

# File set.rb, line 195
def add(o)
  @hash[o] = true
  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.