# File lib/hashery/dictionary.rb, line 402 def replace(hsh2) case hsh2 when Dictionary @order = hsh2.order @hash = hsh2.to_h when Hash @hash = hsh2 @order = @hash.keys else @hash = hsh2.to_h @order = @hash.keys end reorder end