Class: Cakewalk::ChannelList
- Inherits:
-
CachedList
- Object
- CachedList
- Cakewalk::ChannelList
- Defined in:
- lib/cakewalk/channel_list.rb
Overview
Note:
In prior versions, this class was called ChannelManager
Instance Method Summary collapse
-
#find(name) ⇒ Channel?
Finds a channel.
-
#find_ensured(name) ⇒ Channel
Finds or creates a channel.
Methods inherited from CachedList
Constructor Details
This class inherits a constructor from Cakewalk::CachedList
Instance Method Details
#find(name) ⇒ Channel?
Finds a channel.
24 25 26 27 |
# File 'lib/cakewalk/channel_list.rb', line 24 def find(name) downcased_name = name.irc_downcase(@bot.irc.isupport["CASEMAPPING"]) @cache[downcased_name] end |