instance method
[]=
Ruby on Rails 3.1.12
Since v3.1.12 Last seen in v3.1.12Signature
[]=(key, value)
No documentation comment.
Parameters
-
keyreq -
valuereq
Source
# File activesupport/lib/active_support/dependencies.rb, line 539
def []=(key, value)
return unless key.respond_to?(:name)
raise(ArgumentError, 'anonymous classes cannot be cached') if key.name.blank?
@store[key.name] = value
end
Defined in activesupport/lib/active_support/dependencies.rb line 539
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Dependencies::ClassCache