diff options
Diffstat (limited to 'lib/delegate.rb')
-rw-r--r-- | lib/delegate.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/delegate.rb b/lib/delegate.rb index 8c176dc82c..0bbe211a05 100644 --- a/lib/delegate.rb +++ b/lib/delegate.rb @@ -211,8 +211,8 @@ class Delegator < BasicObject end end - def initialize_clone(obj) # :nodoc: - self.__setobj__(obj.__getobj__.clone) + def initialize_clone(obj, freeze: true) # :nodoc: + self.__setobj__(obj.__getobj__.clone(freeze: freeze)) end def initialize_dup(obj) # :nodoc: self.__setobj__(obj.__getobj__.dup) |