Sha256: c5c79cf1beb99e02b72c36eafbbf261277dd99678e97ce8547194d72d9ea1fb4

Contents?: true

Size: 453 Bytes

Versions: 16

Compression:

Stored size: 453 Bytes

Contents

# frozen_string_literal: true

# @api private
# @since 0.1.0
module SmartCore::Initializer::DSL::Inheritance
  class << self
    # @param base [Class]
    # @param child [Class]
    # @return [void]
    #
    # @api private
    # @since 0.1.0
    def inherit(base:, child:)
      child.__params__.concat(base.__params__)
      child.__options__.concat(base.__options__)
      child.__init_extensions__.concat(base.__init_extensions__)
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
smart_initializer-0.11.1 lib/smart_core/initializer/dsl/inheritance.rb
smart_initializer-0.11.0 lib/smart_core/initializer/dsl/inheritance.rb
smart_initializer-0.10.0 lib/smart_core/initializer/dsl/inheritance.rb
smart_initializer-0.9.1 lib/smart_core/initializer/dsl/inheritance.rb
smart_initializer-0.9.0 lib/smart_core/initializer/dsl/inheritance.rb
smart_initializer-0.8.0 lib/smart_core/initializer/dsl/inheritance.rb
smart_initializer-0.7.0 lib/smart_core/initializer/dsl/inheritance.rb
smart_initializer-0.6.0 lib/smart_core/initializer/dsl/inheritance.rb
smart_initializer-0.5.0 lib/smart_core/initializer/dsl/inheritance.rb
smart_initializer-0.4.0 lib/smart_core/initializer/dsl/inheritance.rb
smart_initializer-0.3.2 lib/smart_core/initializer/dsl/inheritance.rb
smart_initializer-0.3.1 lib/smart_core/initializer/dsl/inheritance.rb
smart_initializer-0.3.0 lib/smart_core/initializer/dsl/inheritance.rb
smart_initializer-0.2.0 lib/smart_core/initializer/dsl/inheritance.rb
smart_initializer-0.1.0 lib/smart_core/initializer/dsl/inheritance.rb
smart_initializer-0.1.0.alpha4 lib/smart_core/initializer/dsl/inheritance.rb