Class: Net::IRC::Nick
Overview
NICK <nickname>
Constant Summary
Constants inherited from Message
Instance Attribute Summary collapse
-
#nickname ⇒ Object
Returns the value of attribute nickname.
Attributes inherited from Message
#command, #parameters, #prefix
Instance Method Summary collapse
-
#initialize(nickname) ⇒ Nick
constructor
A new instance of Nick.
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
#nickname ⇒ Object
Returns the value of attribute nickname.
521 522 523 |
# File 'lib/net/irc.rb', line 521 def nickname @nickname end |