method

collect!

ruby latest stable - Class: Set
collect!()
public

Replaces the elements with ones returned by collect(). Returns an enumerator if no block is given.