Cache the result of the methods.
include Memoizable def foo ...... end def bar(a, b) ...... end memoize :foo, :bar(a, b)
To clear cache, #, # is also defined.
(NOTE)
Consider to use this with huge objects to avoid memory leaks.
Can’t use this with super.
# File lib/locale/util/memoizable.rb, line 55 55: def memoize(*symbols) 56: memoize_impl(false, *symbols) 57: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.