instance method replace

Ruby on Rails 3.2.22.5

Since v3.2.22.5 Last seen in v3.2.22.5

Signature

replace(other)

When replacing with another hash, the initial order of our keys must come from the other hash -ordered or not.

Parameters

other req
Source
# File activesupport/lib/active_support/ordered_hash.rb, line 202
      def replace(other)
        super
        @keys = other.keys
        self
      end

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

Defined in ActiveSupport::OrderedHash

Type at least 2 characters to search.

↑↓ navigate · open · esc close