cascading-configuration-array 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -3,33 +3,33 @@ module CascadingConfiguration::Array::ModuleInclusionExtensionSupport
|
|
3
3
|
|
4
4
|
extend CascadingConfiguration::InternalModuleStub
|
5
5
|
|
6
|
-
|
7
|
-
#
|
8
|
-
|
6
|
+
#####################
|
7
|
+
# append_features #
|
8
|
+
#####################
|
9
9
|
|
10
|
-
def
|
11
|
-
super if defined?( super )
|
10
|
+
def append_features( class_or_module )
|
12
11
|
# the module that is including/extending CascadingConfiguration::Array
|
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
|
15
|
+
extend module_self.accessor_module_support
|
19
16
|
end
|
17
|
+
super
|
20
18
|
end
|
21
19
|
|
22
|
-
|
23
|
-
#
|
24
|
-
|
20
|
+
###################
|
21
|
+
# extend_object #
|
22
|
+
###################
|
25
23
|
|
26
|
-
def
|
27
|
-
super if defined?( super )
|
24
|
+
def extend_object( class_or_module )
|
28
25
|
# CascadingConfiguration::Array
|
29
26
|
module_self = self
|
30
27
|
class_or_module.instance_eval do
|
31
28
|
# extend accessors defined for modules (and classes, which are modules)
|
32
29
|
extend module_self.accessor_module_support
|
30
|
+
end
|
31
|
+
super
|
32
|
+
class_or_module.instance_eval do
|
33
33
|
# tell ancestor_configuration_chain to search the eigenclass chain as well
|
34
34
|
extend CascadingConfiguration::Variable::EigenclassConfigurationChain
|
35
35
|
end
|