lib/dry/system/auto_registrar/configuration.rb in dry-system-0.10.1 vs lib/dry/system/auto_registrar/configuration.rb in dry-system-0.11.0
- old
+ new
@@ -14,11 +14,10 @@
FALSE_PROC = -> * { false }.freeze
def self.setting(name)
define_method(name) do |&block|
ivar = "@#{name}"
-
if block
instance_variable_set(ivar, block)
else
instance_variable_get(ivar)
end
@@ -26,13 +25,16 @@
end
setting :exclude
setting :instance
+ attr_accessor :memoize
+
# @api private
def initialize
@instance = DEFAULT_INSTANCE
@exclude = FALSE_PROC
+ @memoize = false
end
end
end
end
end