Module: CascadingConfiguration
- Defined in:
- lib/namespaces.rb,
lib/cascading_configuration.rb
Defined Under Namespace
Modules: Array, Core, Hash, Setting
Constant Summary collapse
- ConfigurationModules =
[ Setting, Hash, Array, Array::Unique, Array::Sorted, Array::Sorted::Unique ]
Class Method Summary collapse
-
.extended(instance) ⇒ Object
self.extended #.
-
.included(instance) ⇒ Object
self.included #.
Class Method Details
.extended(instance) ⇒ Object
self.extended #
39 40 41 42 43 44 45 46 47 |
# File 'lib/cascading_configuration.rb', line 39 def self.extended( instance ) super if defined?( super ) ::CascadingConfiguration::ConfigurationModules.each do |this_member| instance.extend( this_member ) end end |
.included(instance) ⇒ Object
self.included #
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/cascading_configuration.rb', line 23 def self.included( instance ) super if defined?( super ) instance.module_eval do ::CascadingConfiguration::ConfigurationModules.each do |this_member| include( this_member ) end end end |