Module: Mchat::Command::Quit

Defined in:
lib/mchat/commands/quit.rb

Defined Under Namespace

Modules: InstanceMethods

Constant Summary collapse

QuitDoc =
%Q(
#{"Help: Quit".style.bold}

command: /q
explain: quit the mchat.

)

Class Method Summary collapse

Class Method Details

.configure(repl) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/mchat/commands/quit.rb', line 4

def self.configure(repl)
  CommandConditions.push({
    name: 'quit',
    description: "q[uit]\t\tquit mchat",
    help_condition: ['quit','q'],
    help_doc: :quit_help_doc,
    command_condition: ['/quit', '/q'],
    command_run: :quit_command_run
  })
end