cascading-configuration-setting 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -7,14 +7,14 @@ module CascadingConfiguration::Setting
|
|
7
7
|
|
8
8
|
include CascadingConfiguration::Variable
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
10
|
+
include_cascades_prepending_extends( CascadingConfiguration::Setting,
|
11
|
+
CascadingConfiguration::Setting::Interface,
|
12
|
+
CascadingConfiguration::Setting::AccessorDefinitionMethods )
|
13
13
|
|
14
14
|
include_cascades_extends_to_module( CascadingConfiguration::Setting::ModuleInclusionExtensionSupport )
|
15
15
|
|
16
|
-
|
17
|
-
|
16
|
+
extend_cascades_prepending_extends( CascadingConfiguration::Setting::Interface,
|
17
|
+
CascadingConfiguration::Setting::AccessorDefinitionMethods )
|
18
18
|
|
19
19
|
########################################
|
20
20
|
# get_configuration_searching_upward #
|
@@ -3,36 +3,35 @@ module CascadingConfiguration::Setting::ModuleInclusionExtensionSupport
|
|
3
3
|
|
4
4
|
extend CascadingConfiguration::InternalModuleStub
|
5
5
|
|
6
|
-
|
7
|
-
#
|
8
|
-
|
6
|
+
#####################
|
7
|
+
# append_features #
|
8
|
+
#####################
|
9
9
|
|
10
|
-
def
|
11
|
-
|
12
|
-
# CascadingConfiguration::Setting
|
10
|
+
def append_features( class_or_module )
|
11
|
+
# the module that is including/extending CascadingConfiguration::Setting
|
13
12
|
module_self = self
|
14
13
|
class_or_module.instance_eval do
|
15
|
-
# include accessors defined for instances
|
16
|
-
include module_self.accessor_instance_support
|
17
14
|
# extend accessors defined for modules (and classes, which are modules)
|
18
|
-
extend
|
19
|
-
extend CascadingConfiguration::Setting
|
20
|
-
extend CascadingConfiguration::Setting::ModuleInclusionExtensionSupport unless is_a?( Class )
|
15
|
+
extend module_self.accessor_module_support
|
21
16
|
end
|
17
|
+
super
|
22
18
|
end
|
23
19
|
|
24
|
-
|
25
|
-
#
|
26
|
-
|
20
|
+
###################
|
21
|
+
# extend_object #
|
22
|
+
###################
|
27
23
|
|
28
|
-
def
|
29
|
-
super if defined?( super )
|
24
|
+
def extend_object( class_or_module )
|
30
25
|
# CascadingConfiguration::Setting
|
31
26
|
module_self = self
|
32
27
|
class_or_module.instance_eval do
|
28
|
+
# extend accessors defined for modules (and classes, which are modules)
|
33
29
|
extend module_self.accessor_module_support
|
30
|
+
end
|
31
|
+
super
|
32
|
+
class_or_module.instance_eval do
|
33
|
+
# tell ancestor_configuration_chain to search the eigenclass chain as well
|
34
34
|
extend CascadingConfiguration::Variable::EigenclassConfigurationChain
|
35
|
-
extend CascadingConfiguration::Setting
|
36
35
|
end
|
37
36
|
end
|
38
37
|
|