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.
561 562 563 564 565 |
# File 'lib/net/irc.rb', line 561 def initialize(password) @password = password super(nil, 'PASS', @password) end |
Instance Attribute Details
#password ⇒ Object
Returns the value of attribute password.
559 560 561 |
# File 'lib/net/irc.rb', line 559 def password @password end |