Class: Parametric::ParamsHash

Inherits:
Hash
  • Object
show all
Defined in:
lib/parametric/params.rb

Instance Method Summary collapse

Methods included from Hash

included

Instance Method Details

#flat(separator = ',') ⇒ Object



4
5
6
7
8
# File 'lib/parametric/params.rb', line 4

def flat(separator = ',')
  self.each_with_object({}) do |(k,v),memo|
    memo[k] = Utils.value(v, separator)
  end
end