Method: Jank::Command#dispatch
- Defined in:
- lib/command.rb
#dispatch ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/command.rb', line 10 def dispatch command = "#{@args[0]}_command" if !self.respond_to? command command = 'help' end self.send(command) end |