= private = protected
collect!()
Replaces the elements with ones returned by collect().
# File lib/set.rb, line 343 def collect! block_given? or return enum_for(__method__) set = self.class.new each { |o| set << yield(o) } replace(set) end