Class: Parametric::ParamsHash
Instance Method Summary collapse
Methods included from TypedParams
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 |