Registry / utility / method-decorators

method-decorators

JSON →
library0.9.6rbrubygemsunverified

Python's function decorators for Ruby, allowing method wrapping with decorators.

gem install method_decorators
INSTALL
IMPORT
SIG · METHOD-DECORATORS
M
method-decorators
utilityrubyv0.9.6
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.

MethodDecorators
require 'method_decorators'

Apply a memoize decorator to a method.

require 'method_decorators' class MyClass extend MethodDecorators +Memoize def compute(x) sleep 1 x * 2 end end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.9.6latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
method-decorators — gem install method-decorators · libregistry