instance method memoize_all

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.2.3

Signature

memoize_all()

No documentation comment.

Source
# File activesupport/lib/active_support/memoizable.rb, line 21
      def memoize_all
        methods.each do |m|
          if m.to_s =~ /^_unmemoized_(.*)/
            if method(m).arity == 0
              __send__($1)
            else
              ivar = MEMOIZED_IVAR.call($1)
              instance_variable_set(ivar, {})
            end
          end
        end
      end

Defined in activesupport/lib/active_support/memoizable.rb line 21 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::Memoizable::Freezable

Type at least 2 characters to search.

↑↓ navigate · open · esc close