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