Module: CommandHandler

Instance Method Summary collapse

Instance Method Details

#can_handle?(parent, command_symbol, *args, &block) ⇒ Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/command_handler.rb', line 2

def can_handle?(parent, command_symbol, *args, &block)
  raise "must be implemented by a class"
end

#do_handle(parent, command_symbol, *args, &block) ⇒ Object



5
6
7
# File 'lib/command_handler.rb', line 5

def do_handle(parent, command_symbol, *args, &block) 
  raise "must be implemented by a class"
end