marcheiligers/frivol — pull request #1 by autonomous (2012-03-06 14:48:24+00:00)
Title: Added an option that allows counters to be seeded

Let the various counter methods use the seed value if the cache hasn't been touched:

```ruby
class Example
storage_bucket :cached_count, :counter => true, :seed => Proc.new{ |obj| obj.seed_count }

def seed_count
99_999
end
end

eg = Example.new
eg.increment_cached_count # => 100_000
```

Frivolize can also use a seed value for counters:

```ruby
class AnotherExample

def seed_count
88_888
end

def tedious_count
99_999
end
frivolize :tedious_count, :counter => true, :seed => Proc.new{ |obj| obj.seed_count }
end

another_eg = AnotherExample.new
another_eg.decrement_tedious_count_by(3) # => 88_885
```