Module: CascadingConfiguration::Core::EnableInstanceSupport
- Defined in:
- lib/cascading_configuration/core/enable_instance_support.rb
Instance Method Summary collapse
-
#included(instance) ⇒ Object
included #.
Instance Method Details
#included(instance) ⇒ Object
included #
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/cascading_configuration/core/enable_instance_support.rb', line 8 def included( instance ) super if defined?( super ) # Ensure our instance has an instance controller unless instance_controller = ::CascadingConfiguration::Core::InstanceController.instance_controller( instance ) default_encapsulation = self::ClassInstance.default_encapsulation instance_controller = ::CascadingConfiguration::Core::InstanceController.new( instance, default_encapsulation ) end instance_controller.create_instance_support end |