method

to_set

ruby latest stable - Class: Enumerable
to_set(klass = Set, *args, &block)
public

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