Class | Irc::ChannelList |
In: |
lib/rbot/irc.rb
|
Parent: | ArrayOf |
A ChannelList is an ArrayOf Channels
Create a new ChannelList, optionally filling it with the elements from the Array argument fed to it.
# File lib/rbot/irc.rb, line 1492 1492: def initialize(ar=[]) 1493: super(Channel, ar) 1494: end
Convenience method: convert the ChannelList to a list of channel names. The indices are preserved
# File lib/rbot/irc.rb, line 1499 1499: def names 1500: self.map { |chan| chan.name } 1501: end