Method: Configurable::Conversions#export
- Defined in:
- lib/configurable/conversions.rb
#export(source, target = {}) ⇒ Object
64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/configurable/conversions.rb', line 64 def export(source, target={}) each_value do |config| key = config.key if source.has_key?(key) target[config.name] = config.uncast(source[key]) end end target end |