instance method
set_defaults
Ruby on Rails 5.2.8.1
Since v4.2.9 Last seen in v7.1.6 PrivateSignature
set_defaults(target)
No documentation comment.
Parameters
-
targetreq
Source
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 383
def set_defaults(target) # :doc:
if default_proc
target.default_proc = default_proc.dup
else
target.default = default
end
end
Defined in activesupport/lib/active_support/hash_with_indifferent_access.rb line 383
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::HashWithIndifferentAccess