class WeChat::Bot::CachedList
Public Class Methods
new(bot)
click to toggle source
# File lib/wechat/bot/cached_list.rb, line 5 def initialize(bot) @bot = bot @cache = {} @mutex = Mutex.new end
Public Instance Methods
each(&block)
click to toggle source
# File lib/wechat/bot/cached_list.rb, line 11 def each(&block) @cache.each_value(&block) end