Class: Net::IRC::Reply
Direct Known Subclasses
ReplyWithTarget, RplEndofmotd, RplMotd, RplMotdstart, RplNamreply, RplYourhost
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(prefix, command, *args) ⇒ Reply
constructor
A new instance of Reply.
Methods inherited from Message
command_for_number, parse, #prefix?, #to_s, #write
Constructor Details
#initialize(prefix, command, *args) ⇒ Reply
Returns a new instance of Reply.
262 263 264 265 |
# File 'lib/net/irc.rb', line 262 def initialize(prefix, command, *args) args.pop unless @text = args.last super(nil, command, *args) end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
260 261 262 |
# File 'lib/net/irc.rb', line 260 def text @text end |