instance method
get
Ruby on Rails 6.0.6
Since v3.1.12 Last seen in v6.1.7.10Signature
get(key)
No documentation comment.
Parameters
-
keyreq
Source
# File activesupport/lib/active_support/dependencies.rb, line 625
def get(key)
key = key.name if key.respond_to?(:name)
@store[key] ||= Inflector.constantize(key)
end
Defined in activesupport/lib/active_support/dependencies.rb line 625
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Dependencies::ClassCache