Module: SmartCore::Initializer::DSL::Inheritance Private

Defined in:
lib/smart_core/initializer/dsl/inheritance.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0

Class Method Summary collapse

Class Method Details

.inherit(base:, child:) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Parameters:

  • base (Class)
  • child (Class)

Since:

  • 0.1.0



13
14
15
16
17
# File 'lib/smart_core/initializer/dsl/inheritance.rb', line 13

def inherit(base:, child:)
  child.__params__.concat(base.__params__)
  child.__options__.concat(base.__options__)
  child.__init_extensions__.concat(base.__init_extensions__)
end