Sha256: 09c5f1bfe3e58f67f66329908ea7d57f5b022dd4fb9dbb8b054ab62e0f6d48b9
Contents?: true
Size: 603 Bytes
Versions: 12
Compression:
Stored size: 603 Bytes
Contents
# frozen_string_literal: true # @api private # @since 0.1.0 module SmartCore::Container::DefinitionDSL::Inheritance class << self # @option base [Class<SmartCore::Container>] # @option child [Class<SmartCore::Container>] # @return [void] # # @api private # @since 0.1.0 def inherit(base:, child:) child.__container_definition_commands__.concat( base.__container_definition_commands__, &:inheritable? ) child.__container_instantiation_commands__.concat( base.__container_instantiation_commands__, &:inheritable? ) end end end
Version data entries
12 entries across 12 versions & 1 rubygems