method

cast

rails latest stable - Class: ActiveSupport::HashWithIndifferentAccess

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

cast(other)
private

No documentation available.

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