module Commands
Constants
- COMMANDS_MAP
Map input instructions to
Robot
actions- NoCommandError
Public Class Methods
parse(input)
click to toggle source
# File lib/rubbot_cli.rb, line 91 def self.parse(input) cmd, args = input.split args = String(args).split(",") cmd_class = COMMANDS_MAP[String(cmd).upcase] raise NoCommandError.new "'#{cmd}'' is undefined." unless cmd_class cmd_class.new args end