Module: TmpCache::Prototype

Included in:
TmpCache, Cache
Defined in:
lib/tmp_cache/cache.rb

Defined Under Namespace

Modules: Methods

Class Method Summary collapse

Class Method Details

.apply(object) ⇒ Object



10
11
12
# File 'lib/tmp_cache/cache.rb', line 10

def self.apply(object)
  object.extend Methods
end

.included(klass) ⇒ Object



5
6
7
8
# File 'lib/tmp_cache/cache.rb', line 5

def self.included(klass)
  klass.extend Methods
  klass.__send__ :include, Methods
end