Module: Enumerable
- Included in:
- Set
- Defined in:
- lib/set.rb
Instance Method Summary collapse
-
#to_set(klass = Set, *args, &block) ⇒ Object
Makes a set from the enumerable object with given arguments.
Instance Method Details
#to_set(klass = Set, *args, &block) ⇒ Object
Makes a set from the enumerable object with given arguments. Needs to require “set” to use this method.
813 814 815 |
# File 'lib/set.rb', line 813 def to_set(klass = Set, *args, &block) klass.new(self, *args, &block) end |