method

new

v1_9_1_378 - Show latest stable - Class: Set
new(enum = nil)
public

Creates a new set containing the elements of the given enumerable object.

If a block is given, the elements of enum are preprocessed by the given block.