Class: Net::IRC::Pass
Overview
PASS <password>
Constant Summary
Constants inherited from Message
Instance Attribute Summary collapse
-
#password ⇒ Object
Returns the value of attribute password.
Attributes inherited from Message
#command, #parameters, #prefix
Instance Method Summary collapse
-
#initialize(password) ⇒ Pass
constructor
A new instance of Pass.
Methods inherited from Message
command_for_number, parse, #prefix?, #to_s, #write
Constructor Details
#initialize(password) ⇒ Pass
Returns a new instance of Pass.
589 590 591 592 593 |
# File 'lib/net/irc.rb', line 589 def initialize(password) @password = password super(nil, 'PASS', @password) end |
Instance Attribute Details
#password ⇒ Object
Returns the value of attribute password.
587 588 589 |
# File 'lib/net/irc.rb', line 587 def password @password end |