Class: Net::IRC::Privmsg
Overview
PRIVMSG <target> <text>
Constant Summary
Constants inherited from Message
Instance Attribute Summary collapse
-
#ctcp ⇒ Object
Returns the value of attribute ctcp.
-
#target ⇒ Object
Returns the value of attribute target.
-
#text ⇒ Object
Returns the value of attribute text.
Attributes inherited from Message
#command, #parameters, #prefix
Instance Method Summary collapse
-
#initialize(target, text) ⇒ Privmsg
constructor
A new instance of Privmsg.
Methods inherited from Message
command_for_number, parse, #prefix?, #to_s, #write
Constructor Details
#initialize(target, text) ⇒ Privmsg
Returns a new instance of Privmsg.
630 631 632 633 634 635 |
# File 'lib/net/irc.rb', line 630 def initialize(target, text) @target = target @text, @ctcp = CTCP.parse(text) super(nil, 'PRIVMSG', @target, text) end |
Instance Attribute Details
#ctcp ⇒ Object
Returns the value of attribute ctcp.
628 629 630 |
# File 'lib/net/irc.rb', line 628 def ctcp @ctcp end |
#target ⇒ Object
Returns the value of attribute target.
628 629 630 |
# File 'lib/net/irc.rb', line 628 def target @target end |
#text ⇒ Object
Returns the value of attribute text.
628 629 630 |
# File 'lib/net/irc.rb', line 628 def text @text end |