class Psych::Visitors::ToRuby

def deduplicate key

def deduplicate key
  if key.is_a?(String)
    # It is important to untaint the string, otherwise it won't
    # be deduplicated into an fstring, but simply frozen.
    -(key.untaint)
  else
    key
  end
end