class Controll::Commander

used to register commands for a controller

Attributes

controller[R]
initiator[R]
options[R]

Private Class Methods

controller_methods(*names)
Alias for: initiator_methods
initiator_methods(*names) click to toggle source
# File lib/controll/commander.rb, line 27
def initiator_methods *names
  delegate names, to: :initiator
end
Also aliased as: controller_methods
new(initiator, options = {}) click to toggle source
# File lib/controll/commander.rb, line 9
def initialize initiator, options = {}
  @initiator = initiator
  @options = options
end

Private Instance Methods

command(name, *args) click to toggle source
# File lib/controll/commander.rb, line 14
def command name, *args
  send "#{name}_command", *args
end
command!(name, *args) click to toggle source
# File lib/controll/commander.rb, line 18
def command! name, *args
  command(name, *args).perform
end
Also aliased as: use_command, perform_command
perform_command(name, *args)
Alias for: command!
use_command(name, *args)
Alias for: command!