Skip to content

varvet/memoit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Memoize method in Ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%