module Enumerable

Public Instance Methods

to_set(klass = Set, *args, &block) click to toggle source

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

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