Methods
Class Public methods
Instance Public methods
# File activesupport/lib/active_support/memoizable.rb, line 54 def flush_cache(*syms) syms.each do |sym| (methods + private_methods + protected_methods).each do |m| if m.to_s =~ %r^_unmemoized_(#{sym.to_s.gsub(/\?\Z/, '\?')})/ ivar = ActiveSupport::Memoizable.memoized_ivar_for($1) instance_variable_get(ivar).clear if instance_variable_defined?(ivar) end end end end
# File activesupport/lib/active_support/memoizable.rb, line 39 def prime_cache(*syms) syms.each do |sym| methods.each do |m| if m.to_s =~ %r^_unmemoized_(#{sym})/ if method(m).arity == 0 __send__($1) else ivar = ActiveSupport::Memoizable.memoized_ivar_for($1) instance_variable_set(ivar, {}) end end end end end