123456789_123456789_123456789_123456789_123456789_

Module: Enumerable

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: lib/set.rb

Instance Method Summary

Instance Method Details

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

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

[ GitHub ]

  
# File 'lib/set.rb', line 812

def to_set(klass = Set, *args, &block)
  klass.new(self, *args, &block)
end