Method: FlatMap::Mapping::Reader::Method#read

Defined in:
lib/flat_map/mapping/reader/method.rb

#readObject

Send the @method to the mapping’s mapper, passing the mapping itself to it.

Returns:

  • (Object)

    value returned by reader



20
21
22
# File 'lib/flat_map/mapping/reader/method.rb', line 20

def read
  mapper.send(@method, mapping)
end