Class: Lich::Common::ClientCommands::Command

Inherits:
Struct
  • Object
show all
Defined in:
documented/common/client_commands.rb

Overview

One registered command.

Instance Attribute Summary collapse

Instance Attribute Details

#game ⇒ Symbol?

Returns :gs or :dr to gate on the current game, nil to run for any game.

Returns:

  • (Symbol, nil) —

    :gs or :dr to gate on the current game, nil to run for any game



60
# File 'documented/common/client_commands.rb', line 60

Command = Struct.new(:pattern, :game, :handler)

#handler ⇒ Proc

Returns called with the MatchData.

Returns:

  • (Proc) —

    called with the MatchData



60
# File 'documented/common/client_commands.rb', line 60

Command = Struct.new(:pattern, :game, :handler)

#pattern ⇒ Regexp

Returns matched against the command text (the ; stripped).

Returns:

  • (Regexp) —

    matched against the command text (the ; stripped)



60
# File 'documented/common/client_commands.rb', line 60

Command = Struct.new(:pattern, :game, :handler)