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.
551 552 553 554 555 |
# File 'lib/net/irc.rb', line 551 def initialize(nickname) @nickname = nickname super(nil, 'NICK', @nickname) end |
Instance Attribute Details
#nickname ⇒ Object
Returns the value of attribute nickname.
549 550 551 |
# File 'lib/net/irc.rb', line 549 def nickname @nickname end |