kernel/core/array.rb
# Flattens self in place as #flatten. If no changes are
# made, returns nil, otherwise self.
Flattens self in place as #flatten. If no changes are
made, returns nil, otherwise self.
Flattens self in place as #flatten . If no changes are made returns nil otherwise self .
def flatten!
    ret, out = nil, []
    ret = recursively_flatten(self, out)
    replace(out) if ret
    ret
  end
def flatten! ret , out = nil , [ ] ret = recursively_flatten ( self , out ) replace ( out ) if ret ret end
Flattens self in place as #flatten.
Flattens self in place as #flatten .