Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Psych::Visitors::ToRuby#deduplicate
deduplicate(key)
ext/psych/lib/psych/visitors/to_ruby.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/ext/psych/lib/psych/visitors/to_ruby.rb, line 429
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
No documentation available
See also
#build_exception
#deserialize
#allocate_anon_data
#init_with
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0