= private = protected
each(&block)
Calls the given block once for each element in the set, passing the element as parameter. Returns an enumerator if no block is given.
# File lib/set.rb, line 322 def each(&block) block or return enum_for(__method__) { size } @hash.each_key(&block) self end