class Eatr::Pipeline

Public Class Methods

new(steps) click to toggle source
# File lib/eatr/pipeline.rb, line 3
def initialize(steps)
  @steps = steps
end

Public Instance Methods

call(row) click to toggle source
# File lib/eatr/pipeline.rb, line 7
def call(row)
  @steps.reduce(row) { |memo, step| step.call(memo) }
end