Module: Enumerable (Ruby 2.3.4)

In Files

  • set.rb

Methods

Class/Module Index [+]

Quicksearch

Enumerable

Public Instance Methods

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

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

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