instance method cast

Ruby on Rails 8.1.2

Since v8.1.2 Private

Signature

cast(other)

No documentation comment.

Parameters

other req
Source
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 406
      def cast(other)
        self.class === other ? other : self.class.new(other)
      end

Defined in activesupport/lib/active_support/hash_with_indifferent_access.rb line 406 · 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