module Riffer::Helpers::DeepDup
rbs_inline: enabled
Public Instance Methods
Source
# File lib/riffer/helpers/deep_dup.rb, line 9 def call(value) # References shared within +value+ stay shared in the copy — an +:around+ # guardrail registered under two phases is still one registration. seen = {} #: Hash[untyped, untyped] rebuild(value, seen.compare_by_identity) end