Class: Parametric::ParamsHash

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

Instance Method Summary collapse

Methods included from TypedParams

included

Instance Method Details

#flat(separator = ',') ⇒ Object



6
7
8
9
10
# File 'lib/parametric/params.rb', line 6

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