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.
574 575 576 577 578 579 580 581 582 |
# File 'lib/net/irc.rb', line 574 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.
572 573 574 |
# File 'lib/net/irc.rb', line 572 def channels @channels end |
#text ⇒ Object
Returns the value of attribute text.
572 573 574 |
# File 'lib/net/irc.rb', line 572 def text @text end |