Class: Net::IRC::Quit
Overview
QUIT [ <text> ]
Constant Summary
Constants inherited from Message
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Attributes inherited from Message
#command, #parameters, #prefix
Instance Method Summary collapse
-
#initialize(text = nil) ⇒ Quit
constructor
A new instance of Quit.
Methods inherited from Message
command_for_number, parse, #prefix?, #to_s, #write
Constructor Details
#initialize(text = nil) ⇒ Quit
Returns a new instance of Quit.
642 643 644 645 646 647 648 |
# File 'lib/net/irc.rb', line 642 def initialize(text = nil) if @text = text super(nil, 'QUIT', @text) else super(nil, 'QUIT') end end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
640 641 642 |
# File 'lib/net/irc.rb', line 640 def text @text end |