# File lib/compass/quick_cache.rb, line 6 def quick_cache(key, ttl = 1) @quick_cache ||= {} if @quick_cache[key] && @quick_cache[key].first > Time.now - ttl @quick_cache[key].last else (@quick_cache[key] = [Time.now, yield]).last end end