Class: Net::IRC::Mode
Overview
MODE <channel> *( ( “-” / “+” ) *<modes> *<modeparams> )
Constant Summary
Constants inherited from Message
Net::IRC::Message::COMMAND_MAPS
Instance Attribute Summary collapse
-
#channel ⇒ Object
Returns the value of attribute channel.
-
#modes ⇒ Object
Returns the value of attribute modes.
Attributes inherited from Message
#command, #parameters, #prefix
Instance Method Summary collapse
-
#initialize(channel, *parameters) ⇒ Mode
constructor
A new instance of Mode.
Methods inherited from Message
command_for_number, parse, #prefix?, #to_s, #write
Constructor Details
#initialize(channel, *parameters) ⇒ Mode
Returns a new instance of Mode.
539 540 541 542 543 544 |
# File 'lib/net/irc.rb', line 539 def initialize(channel, *parameters) @channel = channel @modes = parameters.join(' ') super(nil, 'MODE', channel, *parameters) end |
Instance Attribute Details
#channel ⇒ Object
Returns the value of attribute channel.
537 538 539 |
# File 'lib/net/irc.rb', line 537 def channel @channel end |
#modes ⇒ Object
Returns the value of attribute modes.
537 538 539 |
# File 'lib/net/irc.rb', line 537 def modes @modes end |