class Morfo::Actions::TransformAction

Attributes

from_field_path[R]
previous_action[R]
transform_blk[R]

Public Class Methods

new(previous_action, from_field_path, transform_blk) click to toggle source
# File lib/morfo/actions.rb, line 75
def initialize previous_action, from_field_path, transform_blk
  @previous_action = previous_action
  @from_field_path = from_field_path
  @transform_blk = transform_blk
end

Public Instance Methods

execute(row) click to toggle source
# File lib/morfo/actions.rb, line 81
def execute row
  transform_blk.call(previous_action.execute(row))
end