lib/dry/system/components/bootable.rb in dry-system-0.13.1 vs lib/dry/system/components/bootable.rb in dry-system-0.13.2
- old
+ new
@@ -49,14 +49,10 @@
# @!attribute [r] identifier
# @return [Symbol] component's unique identifier
attr_reader :identifier
- # @!attribute [r] finalize
- # @return [Proc] Finalization proc
- attr_reader :finalize
-
# @!attribute [r] options
# @return [Hash] component's options
attr_reader :options
# @!attribute [r] triggers
@@ -69,9 +65,11 @@
TRIGGER_MAP = Hash.new { |h, k| h[k] = [] }.freeze
# @api private
def initialize(identifier, options = {}, &block)
+ @config = nil
+ @config_block = nil
@identifier = identifier
@triggers = { before: TRIGGER_MAP.dup, after: TRIGGER_MAP.dup }
@options = block ? options.merge(block: block) : options
@namespace = options[:namespace]
finalize = options[:finalize] || DEFAULT_FINALIZE