class Irc::ChannelList
A ChannelList is an ArrayOf Channel
s
Public Class Methods
new(ar=[])
click to toggle source
Create a new ChannelList, optionally filling it with the elements from the Array argument fed to it.
Calls superclass method
ArrayOf.new
# File lib/rbot/irc.rb, line 1492 def initialize(ar=[]) super(Channel, ar) end
Public Instance Methods
names()
click to toggle source
Convenience method: convert the ChannelList to a list of channel names. The indices are preserved
# File lib/rbot/irc.rb, line 1499 def names self.map { |chan| chan.name } end