Module: CascadingConfiguration::Core
- Defined in:
- lib/cascading_configuration/core.rb,
lib/namespaces.rb
Defined Under Namespace
Modules: EnableInstanceSupport, EnableModuleSupport Classes: Encapsulation, InstanceController, Module
Class Method Summary collapse
Class Method Details
.enable(instance, ccm) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/cascading_configuration/core.rb', line 10 def self.enable( instance, ccm ) instance.const_set( :ClassInstance, ccm ) # Enable module instance so that when included it creates instance support instance.extend( ::CascadingConfiguration::Core::EnableInstanceSupport ) instance.extend( ::Module::Cluster ) instance.cluster( :cascading_configuration ).after_include.extend( instance::ClassInstance ) instance.cluster( :cascading_configuration ).after_extend.extend( instance::ClassInstance ) end |