class method
self.memoized_ivar_for
Ruby on Rails 3.1.12
Since v2.3.18 Last seen in v3.2.22.5Signature
self.memoized_ivar_for(symbol)
No documentation comment.
Parameters
-
symbolreq
Source
# File activesupport/lib/active_support/memoizable.rb, line 6
def self.memoized_ivar_for(symbol)
"@_memoized_#{symbol.to_s.sub(/\?\Z/, '_query').sub(/!\Z/, '_bang')}".to_sym
end
Defined in activesupport/lib/active_support/memoizable.rb line 6
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Memoizable