Sha256: e18b4ab4ffd10aac83fdc9e8e22ddc23c8ae0bcc676986c32c9d056803793511

Contents?: true

Size: 388 Bytes

Versions: 3

Compression:

Stored size: 388 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__)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
smart_initializer-0.1.0.alpha3 lib/smart_core/initializer/dsl/inheritance.rb
smart_initializer-0.1.0.alpha2 lib/smart_core/initializer/dsl/inheritance.rb
smart_initializer-0.1.0.alpha1 lib/smart_core/initializer/dsl/inheritance.rb