Method: FlatMap::Mapping#write_from_params
- Defined in:
- lib/flat_map/mapping.rb
#write_from_params(params) ⇒ Object
Lookup the passed hash of params for the key that corresponds to the full_name of self, and write it if it is present.
63 64 65 |
# File 'lib/flat_map/mapping.rb', line 63 def write_from_params(params) write(params[full_name]) if params.key?(full_name) && writer.present? end |