Class: Net::IRC::Reply

Inherits:
Message show all
Defined in:
lib/net/irc.rb

Constant Summary

Constants inherited from Message

Message::COMMAND_MAPS

Instance Attribute Summary collapse

Attributes inherited from Message

#command, #parameters, #prefix

Instance Method Summary collapse

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

#textObject

Returns the value of attribute text.



260
261
262
# File 'lib/net/irc.rb', line 260

def text
  @text
end