Class: Net::IRC::Join
Overview
JOIN ( <channel> *( “,” <channel> ) [ <key> *( “,” <key> ) ] )
/ "0"
Constant Summary
Constants inherited from Message
Instance Attribute Summary collapse
-
#channels ⇒ Object
Returns the value of attribute channels.
-
#keys ⇒ Object
Returns the value of attribute keys.
Attributes inherited from Message
#command, #parameters, #prefix
Instance Method Summary collapse
-
#initialize(channels, keys = nil) ⇒ Join
constructor
A new instance of Join.
Methods inherited from Message
command_for_number, parse, #prefix?, #to_s, #write
Constructor Details
#initialize(channels, keys = nil) ⇒ Join
Returns a new instance of Join.
523 524 525 526 527 528 529 530 531 532 |
# File 'lib/net/irc.rb', line 523 def initialize(channels, keys = nil) @channels = channels.split(',') @keys = keys && keys.split(',') if keys super(nil, 'JOIN', channels, keys) else super(nil, 'JOIN', channels) end end |
Instance Attribute Details
#channels ⇒ Object
Returns the value of attribute channels.
521 522 523 |
# File 'lib/net/irc.rb', line 521 def channels @channels end |
#keys ⇒ Object
Returns the value of attribute keys.
521 522 523 |
# File 'lib/net/irc.rb', line 521 def keys @keys end |