Module: Flows::Plugin::DependencyInjector::InheritanceCallback Private
- Included in:
- Flows::Plugin::DependencyInjector
- Defined in:
- lib/flows/plugin/dependency_injector.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.
:reek:UtilityFunction
and :reek:FeatureEnvy
are disabled here because Reek does not
know about inheritance callback stuff.
Instance Method Summary collapse
- #extended(mod) ⇒ Object private
- #included(mod) ⇒ Object private
Instance Method Details
#extended(mod) ⇒ Object
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.
126 127 128 129 130 131 132 |
# File 'lib/flows/plugin/dependency_injector.rb', line 126 def extended(mod) mod.extend(DSL) mod.singleton_class.prepend(InheritanceCallback) if mod.class == Module super end |
#included(mod) ⇒ Object
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.
118 119 120 121 122 123 124 |
# File 'lib/flows/plugin/dependency_injector.rb', line 118 def included(mod) mod.extend(DSL) mod.singleton_class.prepend(InheritanceCallback) if mod.class == Module super end |