Module: Pangea::Memoizers

Defined in:
lib/memoizers/dumb_memoizer.rb,
lib/memoizers/strategy.rb,
lib/memoizers/timed_memoizer.rb,
lib/memoizers/simple_memoizer.rb

Overview

:nodoc:

Defined Under Namespace

Modules: DumbMemoizer, SimpleMemoizer, TimedMemoizer

Class Method Summary collapse

Class Method Details

.strategyObject



9
10
11
# File 'lib/memoizers/strategy.rb', line 9

def self.strategy
  @strategy || Pangea::Memoizers::DumbMemoizer
end

.strategy=(mod) ⇒ Object



4
5
6
7
# File 'lib/memoizers/strategy.rb', line 4

def self.strategy=(mod)
  puts "using memoizing strategy #{mod}"
  @strategy = mod
end