public Method

Enumerable.to_set(klass = Set, *args, &block)

Makes a set from the enumerable object with given arguments. Needs to +require "set"+ to use this method.

Source Code

# File set.rb, line 523
def to_set(klass = Set, *args, &block)
  klass.new(self, *args, &block)
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.