Module: Dry::Core::Memoizable::ClassInterface::Object

Includes:
Base
Defined in:
lib/dry/core/memoizable.rb

Instance Method Summary collapse

Methods included from Base

#inherited, #memoize

Instance Method Details

#newObject



36
37
38
39
40
# File 'lib/dry/core/memoizable.rb', line 36

def new(*)
  obj = super
  obj.instance_variable_set(:@__memoized__, MEMOIZED_HASH.dup)
  obj
end