Method: HashOp::Mapping.process_with_mapping_item_mapped_hash
- Defined in:
- lib/hash_op/mapping.rb
.process_with_mapping_item_mapped_hash(value, mapping_item) ⇒ Object
85 86 87 88 89 90 91 |
# File 'lib/hash_op/mapping.rb', line 85 def process_with_mapping_item_mapped_hash(value, mapping_item) return {} if value.nil? mapping_item_mapping = mapping_item[:mapping] raise "Missing mapping for mapped_hash \"#{value}\"" if mapping_item_mapping.nil? apply_mapping(value, mapping_item_mapping) end |