class Psych::Visitors::ToRuby

def deduplicate key

Experimental RBS support (using type sampling data from the type_fusion project).

def deduplicate: (String key) -> String

This signature was generated using 256 samples from 2 applications.

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