Class: Lich::Common::ClientCommands::Command
- Inherits:
-
Struct
- Object
- Struct
- Lich::Common::ClientCommands::Command
- Defined in:
- documented/common/client_commands.rb
Overview
One registered command.
Instance Attribute Summary collapse
-
#game ⇒ Symbol?
:gsor:drto gate on the current game, nil to run for any game. -
#handler ⇒ Proc
Called with the MatchData.
-
#pattern ⇒ Regexp
Matched against the command text (the
;stripped).
Instance Attribute Details
#game ⇒ Symbol?
Returns :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.
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).
60 |
# File 'documented/common/client_commands.rb', line 60 Command = Struct.new(:pattern, :game, :handler) |