public Method

Set.|(enum)

Returns a new set built by merging the set and the elements of the given enumerable object.

Source Code

# File set.rb, line 274
def |(enum)
  enum.is_a?(Enumerable) or raise ArgumentError, "value must be enumerable"
  dup.merge(enum)
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.