module Enumerable
Public Instance Methods
Source
# File lib/set.rb, line 853 def to_set(klass = Set, *args, &block) klass.new(self, *args, &block) end
Makes a set from the enumerable object with given arguments. Needs to โrequire โsetโ` to use this method.