Class: Net::IRC::Nick

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

Overview

NICK <nickname>

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(nickname) ⇒ Nick

Returns a new instance of Nick.



523
524
525
526
527
# File 'lib/net/irc.rb', line 523

def initialize(nickname)
  @nickname = nickname

  super(nil, 'NICK', @nickname)
end

Instance Attribute Details

#nicknameObject

Returns the value of attribute nickname.



521
522
523
# File 'lib/net/irc.rb', line 521

def nickname
  @nickname
end