Return the cache object.
# File lib/tins/memoize.rb, line 7 def __memoize_cache__ @__memoize_cache__ ||= {} end
# File lib/tins/memoize.rb, line 17 def memoize_apply_visibility(id) visibility = instance_eval do case when private_method_defined?(id) :private when protected_method_defined?(id) :protected end end yield ensure visibility and __send__(visibility, id) end
Generated with the Darkfish Rdoc Generator 2.