Module Enumerable
In: set.rb

Methods

to_set  

Public Instance methods

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

[Source]

# File set.rb, line 523
  def to_set(klass = Set, *args, &block)
    klass.new(self, *args, &block)
  end

[Validate]

ruby-doc.org is a community service provided by James Britt and Happy Camper Studios, a Phoenix, Arizona, Ruby application development company.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.