Method: Hookit::Converginator#converge_hash
- Defined in:
- lib/hookit/converginator.rb
#converge_hash(template, value) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/hookit/converginator.rb', line 21 def converge_hash(template, value) temp = {} template.each do |k, t| if value.key? k temp[k] = converge_value t, value[k] else temp[k] = t[:default] end end temp end |