Method: Nori::CoreExt::Hash#normalize_param
- Defined in:
- lib/nori/core_ext/hash.rb
#normalize_param(key, value) ⇒ String
Returns This key value pair as a param.
13 14 15 16 17 18 19 20 21 |
# File 'lib/nori/core_ext/hash.rb', line 13 def normalize_param(key, value) if value.is_a?(Array) normalize_array_params(key, value) elsif value.is_a?(Hash) normalize_hash_params(key, value) else normalize_simple_type_params(key, value) end end |