Method: Foreman::Thor::CoreExt::OrderedHash#replace
- Defined in:
- lib/foreman/vendor/thor/lib/thor/core_ext/ordered_hash.rb
#replace(other) ⇒ Object
When replacing with another hash, the initial order of our keys must come from the other hash -ordered or not.
111 112 113 114 115 |
# File 'lib/foreman/vendor/thor/lib/thor/core_ext/ordered_hash.rb', line 111 def replace(other) super @keys = other.keys self end |