class SamFront::Base

Public Class Methods

new() click to toggle source
# File lib/jenga/base.rb, line 9
def initialize
  @name = self.class.to_s
end

Public Instance Methods

forward(_next) click to toggle source
# File lib/jenga/base.rb, line 13
def forward _next
  @next = _next
  @forward = true
end
run_task(data) click to toggle source
# File lib/jenga/base.rb, line 25
def run_task data
  data = task(data)
  #@next.run_task(data) if @forward
  if @forward
    puts "Running next: #{@next.class.to_s}"
    @next.run_task(data)
  end
end
set_config(conf) click to toggle source
# File lib/jenga/base.rb, line 18
def set_config conf
  raise "Not a valid conf for #{@name}" unless conf.is_a? Hash
end
task(data) click to toggle source
# File lib/jenga/base.rb, line 22
def task data
end