Class Module
In: lib/spruz/memoize.rb
Parent: Object

Methods

Public Class methods

Returns the current memoize cache for all the stored objects and method call results.

Finalizer to delete the stored result for a garbage collected object.

Public Instance methods

Returns the current memoize cache for this Module.

Clear cached values for all methods and functions.

Automatically memoize calls of the functions function_ids. The memoized result does ONLY depend on the arguments given to the function.

Automatically memoize calls of the the methods method_ids. The memoized results do NOT ONLY depend on the arguments, but ALSO on the object the method is called on.

[Validate]