class TarvitHelpers::HashPresenter::Cached
Public Class Methods
new(hash, levels=[], parent=nil)
click to toggle source
Calls superclass method
# File lib/tarvit-helpers/modules/hash_presenter/cached.rb, line 4 def initialize(hash, levels=[], parent=nil) super @cache = {} end
Public Instance Methods
_value(method_name)
click to toggle source
Calls superclass method
# File lib/tarvit-helpers/modules/hash_presenter/cached.rb, line 9 def _value(method_name) @cache[method_name] ||= super end