Method: Enumerable#flatten

Defined in:
lib/jinx/helpers/enumerable.rb

#flattenEnumerable

Returns the flattened result.

Examples:

{:a => {:b => :c}, :d => [:e]}.enum_values.flatten.to_a #=> [:b, :c, :e]

Returns:



155
156
157
# File 'lib/jinx/helpers/enumerable.rb', line 155

def flatten
  Jinx::Flattener.new(self).to_a
end