Registry / utility / cache-method

cache-method

JSON →
library0.2.7rbrubygemsunverified

Like alias_method, but it's cache_method!

gem install cache_method
INSTALL
IMPORT
SIG · CACHE-METHOD
C
cache-method
utilityrubyv0.2.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CacheMethod
✓ require 'cache_method'

Cache method results automatically

require 'cache_method' class Foo def expensive_calc(x) sleep 1 x * 2 end cache_method :expensive_calc end Foo.new.expensive_calc(5) # cached after first call
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.7latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
cache-method — gem install cache-method · libregistry