Module: Qonfig::Configurable::ClassInheritance Private
- Defined in:
- lib/qonfig/configurable.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.
Instance Method Summary collapse
- #inherited(child_klass) ⇒ void private
Instance Method Details
#inherited(child_klass) ⇒ 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.
34 35 36 37 38 39 40 41 42 43 |
# File 'lib/qonfig/configurable.rb', line 34 def inherited(child_klass) inherited_config_klass = Class.new(@__qonfig_config_klass__) child_klass.instance_variable_set(:@__qonfig_definition_lock__, Mutex.new) child_klass.instance_variable_set(:@__qonfig_access_lock__, Mutex.new) child_klass.instance_variable_set(:@__qonfig_config_klass__, inherited_config_klass) child_klass.instance_variable_set(:@__qonfig_config__, nil) super end |