Class: Cinch::CachedList Private
- Inherits:
-
Object
- Object
- Cinch::CachedList
- Includes:
- Enumerable
- Defined in:
- lib/cinch/cached_list.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Note:
In prior versions, this class was called CacheManager
Direct Known Subclasses
Instance Method Summary collapse
- #each(&block) ⇒ Object private
-
#initialize(bot) ⇒ CachedList
constructor
private
A new instance of CachedList.
Constructor Details
#initialize(bot) ⇒ CachedList
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of CachedList.
11 12 13 14 15 |
# File 'lib/cinch/cached_list.rb', line 11 def initialize(bot) @bot = bot @cache = {} @mutex = Mutex.new end |
Instance Method Details
#each(&block) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
17 18 19 |
# File 'lib/cinch/cached_list.rb', line 17 def each(&block) @cache.each_value(&block) end |