Module: CacheShoe

Defined in:
lib/cache_shoe.rb

Defined Under Namespace

Modules: ClassMethods Classes: Configuration

Constant Summary collapse

PASS_THROUGH =
:_pass_through

Class Method Summary collapse

Class Method Details

.config {|@config| ... } ⇒ Object

Yields:



18
19
20
21
22
# File 'lib/cache_shoe.rb', line 18

def self.config
  @config ||= Configuration.new
  yield @config if block_given?
  @config
end

.included(base) ⇒ Object



12
13
14
15
16
# File 'lib/cache_shoe.rb', line 12

def self.included(base)
  class << base
    prepend ClassMethods
  end
end