Class: Net::IRC::Part
Overview
PART <channel> *( “,” <channel> ) [ <text> ]
Constant Summary
Constants inherited from Message
Instance Attribute Summary collapse
-
#channels ⇒ Object
Returns the value of attribute channels.
-
#text ⇒ Object
Returns the value of attribute text.
Attributes inherited from Message
#command, #parameters, #prefix
Instance Method Summary collapse
-
#initialize(channels, message = nil) ⇒ Part
constructor
A new instance of Part.
Methods inherited from Message
command_for_number, parse, #prefix?, #to_s, #write
Constructor Details
#initialize(channels, message = nil) ⇒ Part
Returns a new instance of Part.
546 547 548 549 550 551 552 553 554 |
# File 'lib/net/irc.rb', line 546 def initialize(channels, = nil) @channels = channels.split(',') if super(nil, 'PART', channels, ) else super(nil, 'PART', channels) end end |
Instance Attribute Details
#channels ⇒ Object
Returns the value of attribute channels.
544 545 546 |
# File 'lib/net/irc.rb', line 544 def channels @channels end |
#text ⇒ Object
Returns the value of attribute text.
544 545 546 |
# File 'lib/net/irc.rb', line 544 def text @text end |