Method: Pantry#add_server_command
- Defined in:
- lib/pantry.rb
#add_server_command(command_class) ⇒ Object
Register a command object class to be handled only by the Server
117 118 119 120 121 122 |
# File 'lib/pantry.rb', line 117 def add_server_command(command_class) ensure_proper_command_class(command_class) check_for_duplicates(server_commands, command_class) server_commands << command_class end |