module SmartCore::Container::DefinitionDSL::Inheritance

@api private @since 0.1.0

Public Class Methods

inherit(base:, child:) click to toggle source

@option base [Class<SmartCore::Container>] @option child [Class<SmartCore::Container>] @return [void]

@api private @since 0.1.0

# File lib/smart_core/container/definition_dsl/inheritance.rb, line 13
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