Class: Net::IRC::Quit

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

Overview

QUIT [ <text> ]

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(text = nil) ⇒ Quit

Returns a new instance of Quit.



614
615
616
617
618
619
620
# File 'lib/net/irc.rb', line 614

def initialize(text = nil)
  if @text = text
    super(nil, 'QUIT', @text)
  else
    super(nil, 'QUIT')
  end
end

Instance Attribute Details

#textObject

Returns the value of attribute text.



612
613
614
# File 'lib/net/irc.rb', line 612

def text
  @text
end