module Controll::Focused::Enabler

Public Class Methods

assistant_methods(*names) click to toggle source
# File lib/controll/focused/enabler.rb, line 10
def self.assistant_methods *names
  delegate names, to: :assistant
end

Public Instance Methods

execute() click to toggle source
# File lib/controll/focused/enabler.rb, line 6
def execute     
  action.perform
end

Protected Instance Methods

action() click to toggle source

the action resulting from executing the flow. Should be an instance of either:

  • Fallback

  • Redirecter

  • Renderer

# File lib/controll/focused/enabler.rb, line 21
def action
  @action ||= flow.execute
end
flow() click to toggle source

@flowhandler ||= Controll::Flow::Master.new self

# File lib/controll/focused/enabler.rb, line 26
def flow
  raise NotImplementedError, '#flow must return the Controll::Flow::Master instance to be used'
end