public Method

Set.-(enum)

Returns a new set built by duplicating the set, removing every element that appears in the given enumerable object.

Source Code

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