instance method cast

Ruby on Rails edge

Since v8.1.3.1 Private — implementation detail, not part of the public API

Available in: v8.1.3.1 edge

Signature

cast(other)

No documentation comment.

Parameters

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

Defined in activesupport/lib/active_support/hash_with_indifferent_access.rb line 455 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::HashWithIndifferentAccess

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close