This only handles a depth of one. `flatten` works for arbitrary levels of nesting and also supports an optional argument to control the depth. Please see http://ruby-doc.org/core-1.9.3/Array.html#method-i-flatten.

The `flattening` method should provide the same API.