Module: Enumerable (Ruby 2.7.2)
Description: Module : Enumerable - Ruby 2.7.2

### Home Classes Methods

### In Files

- set.rb

### Methods

- #to_set

### Class/Module Index

Quicksearch

- Enumerable
- Set
- SortedSet

No matching classes.

# 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 set.rb, line 805
    def to_set(klass = Set, *args, &block)
      klass.new(self, *args, &block)
    end