Class: Dazeus::Event::Command
- Defined in:
- lib/dazeus/event/command.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#command ⇒ Object
Returns the value of attribute command.
-
#remainder ⇒ Object
Returns the value of attribute remainder.
Attributes inherited from Message
#channel, #message, #network, #nick
Attributes inherited from Event
Instance Method Summary collapse
Methods inherited from Message
Methods inherited from Event
Constructor Details
This class inherits a constructor from Dazeus::Event::Event
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
6 7 8 |
# File 'lib/dazeus/event/command.rb', line 6 def args @args end |
#command ⇒ Object
Returns the value of attribute command.
6 7 8 |
# File 'lib/dazeus/event/command.rb', line 6 def command @command end |
#remainder ⇒ Object
Returns the value of attribute remainder.
6 7 8 |
# File 'lib/dazeus/event/command.rb', line 6 def remainder @remainder end |
Instance Method Details
#post_init ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/dazeus/event/command.rb', line 7 def post_init super @remainder = if @params.length > 4 then @params[4] else '' end = @dazeus.highlightCharacter + += ' ' + @remainder if @remainder.length > 0 @args = @params[5..-1] @args = [] if @args == nil end |