class SPED2SQL::Pipeline::Base
Attributes
tasks[RW]
Public Class Methods
new(tasks = [])
click to toggle source
# File lib/sped2sql/pipeline/base.rb, line 13 def initialize(tasks = []) @tasks = tasks end
Public Instance Methods
<<(task)
click to toggle source
# File lib/sped2sql/pipeline/base.rb, line 17 def <<(task) @tasks << task self end
execute(env)
click to toggle source
# File lib/sped2sql/pipeline/base.rb, line 22 def execute(env) @tasks.each { |t| env = t.call(env) } env end