This method is only available on newer versions. The first available version (v2_6_3) is shown here.
replace(other)
When replacing with another hash, the initial order of our keys must come from the other hash -ordered or not.
# File lib/bundler/vendor/thor/lib/thor/core_ext/ordered_hash.rb, line 111 def replace(other) super @keys = other.keys self end