Method: FlatMap::Mapping#read_as_params

Defined in:
lib/flat_map/mapping.rb

#read_as_paramsHash

Return a hash of a single key => value pair, where key corresponds to full_name and value to value read from target. If reader is not set, return an empty hash.

Returns:

  • (Hash)


72
73
74
# File 'lib/flat_map/mapping.rb', line 72

def read_as_params
  reader ? {full_name => read} : {}
end