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

Version Path
smart_container-0.11.0 lib/smart_core/container/definition_dsl/inheritance.rb
smart_container-0.10.0 lib/smart_core/container/definition_dsl/inheritance.rb
smart_container-0.9.0 lib/smart_core/container/definition_dsl/inheritance.rb
smart_container-0.8.1 lib/smart_core/container/definition_dsl/inheritance.rb
smart_container-0.8.0 lib/smart_core/container/definition_dsl/inheritance.rb
smart_container-0.7.0 lib/smart_core/container/definition_dsl/inheritance.rb
smart_container-0.6.0 lib/smart_core/container/definition_dsl/inheritance.rb
smart_container-0.5.0 lib/smart_core/container/definition_dsl/inheritance.rb
smart_container-0.4.0 lib/smart_core/container/definition_dsl/inheritance.rb
smart_container-0.3.0 lib/smart_core/container/definition_dsl/inheritance.rb
smart_container-0.2.0 lib/smart_core/container/definition_dsl/inheritance.rb
smart_container-0.1.0 lib/smart_core/container/definition_dsl/inheritance.rb