class FlatMap::Mapping::Writer::Proc
Proc
writer calls a lambda passed on the mapping definition and sends the mapper’s target and value to it.
Note that this doesn’t set anything on the target itself.
Public Instance Methods
write(value)
click to toggle source
Call a @method
, which is a Proc
object, passing it the mapping’s target
and value
.
@param [Object] value @return [Object] result of writing
# File lib/flat_map/mapping/writer/proc.rb, line 13 def write(value) @method.call(target, value) end