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