Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 713 Bytes

README.md

File metadata and controls

44 lines (30 loc) · 713 Bytes

Memoit

Gem Version Build Status

Memoizes methods.

Installation

Add this line to your application's Gemfile:

gem 'memoit'

Usage

class Foo
  memoize def bar(value)
    expensive_calculation(value)
  end

  memoize_class_method def self.baz(value)
    expensive_calculation(value)
  end
end

Is it any good?

Yes.

Development

gem install bundler
bundle install
rspec

License

MIT