RubyGems Navigation menu

dirty-memoize 0.0.4

Like Memoize, but designed for mutable and parametizable objects Use when: 1. You have one expensive method (\compute) which set many internal variables. So, is preferable lazy evaluation of these dependent variables. 2. The expensive operation depends on one or more parameters 3. Changes on one or more parameters affect all dependent variables 4. You may want to hide the call of 'compute' operation 5. The user could want test several different parameters values

Versions:

  1. 0.0.4 - January 26, 2011 (10 KB)
  2. 0.0.3 - April 1, 2010 (7 KB)
  3. 0.0.1 - April 1, 2010 (7 KB)

Development Dependencies:

Authors:

  • Claudio Bustos

Owners:

Fc779573e9087a3b7e83ae78a6214b25

Total downloads 90,766

For this version 86,461

Required Ruby Version: None

Licenses:

N/A

Gemfile:
gem 'dirty-memoize', '~> 0.0.4' = Copy to clipboard Copied!

install:
gem install dirty-memoize = Copy to clipboard Copied!

Links: