Method: Set#flatten!
- Defined in:
- lib/set.rb
#flatten! ⇒ Object
Equivalent to Set#flatten, but replaces the receiver with the result in place. Returns nil if no modifications were made.
204 205 206 |
# File 'lib/set.rb', line 204 def flatten! replace(flatten()) if any? { |e| e.is_a?(Set) } end |