Module: SmartCore::Injection::DSL::ClassInheritance Private
- Defined in:
- lib/smart_core/injection/dsl.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.
31 32 33 34 35 36 37 38 |
# File 'lib/smart_core/injection/dsl.rb', line 31 def inherited(child_klass) child_klass.instance_variable_set( :@__smart_injection_injector__, __smart_injection_injector__.duplicate_for(child_klass) ) child_klass.singleton_class.prepend(ClassInheritance) super end |