instance method set_defaults

Ruby on Rails 5.2.8.1

Since v4.2.9 Last seen in v7.1.6 Private

Available in: v4.2.9 v5.2.8.1 v6.0.6 v6.1.7.10 v7.0.10 v7.1.6

Signature

set_defaults(target)

No documentation comment.

Parameters

target req
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close