Module: Scrappy::Cached

Included in:
Agent
Defined in:
lib/scrappy/agent/cache.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
# File 'lib/scrappy/agent/cache.rb', line 5

def self.included base
  base.extend Cached::ClassMethods
end

Instance Method Details

#cacheObject



15
16
17
# File 'lib/scrappy/agent/cache.rb', line 15

def cache
  self.class.cache
end