class FlatMap::Mapping::Reader::Proc
Proc
reader accepts a lambda and calls it with the target as an argument for reading.
Public Instance Methods
read()
click to toggle source
Call a @method
, which is a {Proc} object, passing the target
object to it.
@return [Object] value returned by reader’s lambda
# File lib/flat_map/mapping/reader/proc.rb, line 10 def read @method.call(target) end