lib/dry/system/components/bootable.rb in dry-system-0.8.0 vs lib/dry/system/components/bootable.rb in dry-system-0.8.1

- old
+ new

@@ -205,9 +205,18 @@ container.instance_exec(lifecycle.container, &fn) end self end + # Return a new instance with updated name and options + # + # @return [Dry::Struct] + # + # @api private + def new(identifier, new_options = EMPTY_HASH) + self.class.new(identifier, options.merge(new_options)) + end + # Return a new instance with updated options # # @return [Dry::Struct] # # @api private