module-cluster 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/module-cluster/ModuleCluster/Define/ModuleClusterCascades.rb +8 -8
- data/lib/module-cluster/ModuleCluster/Define/ModuleClusterCascadesToClass.rb +8 -8
- data/lib/module-cluster/ModuleCluster/Define/ModuleClusterCascadesToModule.rb +8 -8
- data/lib/module-cluster/ModuleCluster/Define/_private_/AnonymousModule.rb +8 -8
- metadata +2 -2
@@ -8,7 +8,7 @@ module ModuleCluster::Define::ModuleClusterCascades
|
|
8
8
|
###############################
|
9
9
|
|
10
10
|
def include_cascades_includes( *includes )
|
11
|
-
includes_module = anonymous_module_for_included do
|
11
|
+
includes_module = anonymous_module_for_included( 'Cascades' ) do
|
12
12
|
extend ModuleCluster::Define::ModuleClusterCascades
|
13
13
|
include_cascades_includes( *includes )
|
14
14
|
includes.each do |this_module|
|
@@ -24,7 +24,7 @@ module ModuleCluster::Define::ModuleClusterCascades
|
|
24
24
|
##############################
|
25
25
|
|
26
26
|
def include_cascades_extends( *extends )
|
27
|
-
extends_module = anonymous_module_for_included do
|
27
|
+
extends_module = anonymous_module_for_included( 'Cascades' ) do
|
28
28
|
extend ModuleCluster::Define::ModuleClusterCascades
|
29
29
|
include_cascades_extends( *extends )
|
30
30
|
extends.each do |this_module|
|
@@ -50,7 +50,7 @@ module ModuleCluster::Define::ModuleClusterCascades
|
|
50
50
|
##############################
|
51
51
|
|
52
52
|
def extend_cascades_includes( *includes )
|
53
|
-
includes_module = anonymous_module_for_extended do
|
53
|
+
includes_module = anonymous_module_for_extended( 'Cascades' ) do
|
54
54
|
extend ModuleCluster::Define::ModuleClusterCascades
|
55
55
|
extend_cascades_includes( *includes )
|
56
56
|
includes.each do |this_module|
|
@@ -66,7 +66,7 @@ module ModuleCluster::Define::ModuleClusterCascades
|
|
66
66
|
#############################
|
67
67
|
|
68
68
|
def extend_cascades_extends( *extends )
|
69
|
-
extends_module = anonymous_module_for_extended do
|
69
|
+
extends_module = anonymous_module_for_extended( 'Cascades' ) do
|
70
70
|
extend ModuleCluster::Define::ModuleClusterCascades
|
71
71
|
extend_cascades_extends( *extends )
|
72
72
|
extends.each do |this_module|
|
@@ -92,7 +92,7 @@ module ModuleCluster::Define::ModuleClusterCascades
|
|
92
92
|
##########################################
|
93
93
|
|
94
94
|
def include_cascades_prepending_includes( *includes )
|
95
|
-
includes_module = anonymous_module_for_append_features do
|
95
|
+
includes_module = anonymous_module_for_append_features( 'Cascades' ) do
|
96
96
|
extend ModuleCluster::Define::ModuleClusterCascades
|
97
97
|
include_cascades_prepending_includes( *includes )
|
98
98
|
includes.each do |this_module|
|
@@ -108,7 +108,7 @@ module ModuleCluster::Define::ModuleClusterCascades
|
|
108
108
|
#########################################
|
109
109
|
|
110
110
|
def include_cascades_prepending_extends( *extends )
|
111
|
-
extends_module = anonymous_module_for_append_features do
|
111
|
+
extends_module = anonymous_module_for_append_features( 'Cascades' ) do
|
112
112
|
extend ModuleCluster::Define::ModuleClusterCascades
|
113
113
|
include_cascades_prepending_extends( *extends )
|
114
114
|
extends.each do |this_module|
|
@@ -134,7 +134,7 @@ module ModuleCluster::Define::ModuleClusterCascades
|
|
134
134
|
#########################################
|
135
135
|
|
136
136
|
def extend_cascades_prepending_includes( *includes )
|
137
|
-
includes_module = anonymous_module_for_extend_object do
|
137
|
+
includes_module = anonymous_module_for_extend_object( 'Cascades' ) do
|
138
138
|
extend ModuleCluster::Define::ModuleClusterCascades
|
139
139
|
extend_cascades_prepending_includes( *includes )
|
140
140
|
includes.each do |this_module|
|
@@ -150,7 +150,7 @@ module ModuleCluster::Define::ModuleClusterCascades
|
|
150
150
|
########################################
|
151
151
|
|
152
152
|
def extend_cascades_prepending_extends( *extends )
|
153
|
-
extends_module = anonymous_module_for_extend_object do
|
153
|
+
extends_module = anonymous_module_for_extend_object( 'Cascades' ) do
|
154
154
|
extend ModuleCluster::Define::ModuleClusterCascades
|
155
155
|
extend_cascades_prepending_extends( *extends )
|
156
156
|
extends.each do |this_module|
|
@@ -8,7 +8,7 @@ module ModuleCluster::Define::ModuleClusterCascadesToClass
|
|
8
8
|
########################################
|
9
9
|
|
10
10
|
def include_cascades_includes_to_class( *includes )
|
11
|
-
includes_module = anonymous_module_for_included do
|
11
|
+
includes_module = anonymous_module_for_included( 'CascadesToClass' ) do
|
12
12
|
extend ModuleCluster::Define::ModuleClusterCascadesToClass
|
13
13
|
include_cascades_includes_to_class( *includes )
|
14
14
|
if is_a?( Class )
|
@@ -26,7 +26,7 @@ module ModuleCluster::Define::ModuleClusterCascadesToClass
|
|
26
26
|
#######################################
|
27
27
|
|
28
28
|
def include_cascades_extends_to_class( *extends )
|
29
|
-
extends_module = anonymous_module_for_included do
|
29
|
+
extends_module = anonymous_module_for_included( 'CascadesToClass' ) do
|
30
30
|
extend ModuleCluster::Define::ModuleClusterCascadesToClass
|
31
31
|
include_cascades_extends_to_class( *extends )
|
32
32
|
if is_a?( Class )
|
@@ -54,7 +54,7 @@ module ModuleCluster::Define::ModuleClusterCascadesToClass
|
|
54
54
|
#######################################
|
55
55
|
|
56
56
|
def extend_cascades_includes_to_class( *includes )
|
57
|
-
includes_module = anonymous_module_for_extended do
|
57
|
+
includes_module = anonymous_module_for_extended( 'CascadesToClass' ) do
|
58
58
|
extend ModuleCluster::Define::ModuleClusterCascadesToClass
|
59
59
|
extend_cascades_includes_to_class( *includes )
|
60
60
|
if is_a?( Class )
|
@@ -72,7 +72,7 @@ module ModuleCluster::Define::ModuleClusterCascadesToClass
|
|
72
72
|
######################################
|
73
73
|
|
74
74
|
def extend_cascades_extends_to_class( *extends )
|
75
|
-
extends_module = anonymous_module_for_extended do
|
75
|
+
extends_module = anonymous_module_for_extended( 'CascadesToClass' ) do
|
76
76
|
extend ModuleCluster::Define::ModuleClusterCascadesToClass
|
77
77
|
extend_cascades_extends_to_class( *extends )
|
78
78
|
if is_a?( Class )
|
@@ -100,7 +100,7 @@ module ModuleCluster::Define::ModuleClusterCascadesToClass
|
|
100
100
|
###################################################
|
101
101
|
|
102
102
|
def include_cascades_to_class_prepending_includes( *includes )
|
103
|
-
includes_module = anonymous_module_for_append_features do
|
103
|
+
includes_module = anonymous_module_for_append_features( 'CascadesToClass' ) do
|
104
104
|
extend ModuleCluster::Define::ModuleClusterCascadesToClass
|
105
105
|
include_cascades_to_class_prepending_includes( *includes )
|
106
106
|
if is_a?( Class )
|
@@ -118,7 +118,7 @@ module ModuleCluster::Define::ModuleClusterCascadesToClass
|
|
118
118
|
##################################################
|
119
119
|
|
120
120
|
def include_cascades_to_class_prepending_extends( *extends )
|
121
|
-
extends_module = anonymous_module_for_append_features do
|
121
|
+
extends_module = anonymous_module_for_append_features( 'CascadesToClass' ) do
|
122
122
|
extend ModuleCluster::Define::ModuleClusterCascadesToClass
|
123
123
|
include_cascades_to_class_prepending_extends( *extends )
|
124
124
|
if is_a?( Class )
|
@@ -146,7 +146,7 @@ module ModuleCluster::Define::ModuleClusterCascadesToClass
|
|
146
146
|
##################################################
|
147
147
|
|
148
148
|
def extend_cascades_to_class_prepending_includes( *includes )
|
149
|
-
includes_module = anonymous_module_for_extend_object do
|
149
|
+
includes_module = anonymous_module_for_extend_object( 'CascadesToClass' ) do
|
150
150
|
extend ModuleCluster::Define::ModuleClusterCascadesToClass
|
151
151
|
extend_cascades_to_class_prepending_includes( *includes )
|
152
152
|
if is_a?( Class )
|
@@ -164,7 +164,7 @@ module ModuleCluster::Define::ModuleClusterCascadesToClass
|
|
164
164
|
#################################################
|
165
165
|
|
166
166
|
def extend_cascades_to_class_prepending_extends( *extends )
|
167
|
-
extends_module = anonymous_module_for_extend_object do
|
167
|
+
extends_module = anonymous_module_for_extend_object( 'CascadesToClass' ) do
|
168
168
|
extend ModuleCluster::Define::ModuleClusterCascadesToClass
|
169
169
|
extend_cascades_to_class_prepending_extends( *extends )
|
170
170
|
if is_a?( Class )
|
@@ -8,7 +8,7 @@ module ModuleCluster::Define::ModuleClusterCascadesToModule
|
|
8
8
|
#########################################
|
9
9
|
|
10
10
|
def include_cascades_includes_to_module( *includes )
|
11
|
-
includes_module = anonymous_module_for_included do
|
11
|
+
includes_module = anonymous_module_for_included( 'CascadesToModule' ) do
|
12
12
|
unless is_a?( Class )
|
13
13
|
extend ModuleCluster::Define::ModuleClusterCascadesToModule
|
14
14
|
include_cascades_includes_to_module( *includes )
|
@@ -26,7 +26,7 @@ module ModuleCluster::Define::ModuleClusterCascadesToModule
|
|
26
26
|
########################################
|
27
27
|
|
28
28
|
def include_cascades_extends_to_module( *extends )
|
29
|
-
extends_module = anonymous_module_for_included do
|
29
|
+
extends_module = anonymous_module_for_included( 'CascadesToModule' ) do
|
30
30
|
unless is_a?( Class )
|
31
31
|
extend ModuleCluster::Define::ModuleClusterCascadesToModule
|
32
32
|
include_cascades_extends_to_module( *extends )
|
@@ -54,7 +54,7 @@ module ModuleCluster::Define::ModuleClusterCascadesToModule
|
|
54
54
|
########################################
|
55
55
|
|
56
56
|
def extend_cascades_includes_to_module( *includes )
|
57
|
-
includes_module = anonymous_module_for_extended do
|
57
|
+
includes_module = anonymous_module_for_extended( 'CascadesToModule' ) do
|
58
58
|
unless is_a?( Class )
|
59
59
|
extend ModuleCluster::Define::ModuleClusterCascadesToModule
|
60
60
|
extend_cascades_includes_to_module( *includes )
|
@@ -72,7 +72,7 @@ module ModuleCluster::Define::ModuleClusterCascadesToModule
|
|
72
72
|
#######################################
|
73
73
|
|
74
74
|
def extend_cascades_extends_to_module( *extends )
|
75
|
-
extends_module = anonymous_module_for_extended do
|
75
|
+
extends_module = anonymous_module_for_extended( 'CascadesToModule' ) do
|
76
76
|
unless is_a?( Class )
|
77
77
|
extend ModuleCluster::Define::ModuleClusterCascadesToModule
|
78
78
|
extend_cascades_extends_to_module( *extends )
|
@@ -100,7 +100,7 @@ module ModuleCluster::Define::ModuleClusterCascadesToModule
|
|
100
100
|
####################################################
|
101
101
|
|
102
102
|
def include_cascades_to_module_prepending_includes( *includes )
|
103
|
-
includes_module = anonymous_module_for_append_features do
|
103
|
+
includes_module = anonymous_module_for_append_features( 'CascadesToModule' ) do
|
104
104
|
unless is_a?( Class )
|
105
105
|
extend ModuleCluster::Define::ModuleClusterCascadesToModule
|
106
106
|
include_cascades_to_module_prepending_includes( *includes )
|
@@ -118,7 +118,7 @@ module ModuleCluster::Define::ModuleClusterCascadesToModule
|
|
118
118
|
###################################################
|
119
119
|
|
120
120
|
def include_cascades_to_module_prepending_extends( *extends )
|
121
|
-
extends_module = anonymous_module_for_append_features do
|
121
|
+
extends_module = anonymous_module_for_append_features( 'CascadesToModule' ) do
|
122
122
|
unless is_a?( Class )
|
123
123
|
extend ModuleCluster::Define::ModuleClusterCascadesToModule
|
124
124
|
include_cascades_to_module_prepending_extends( *extends )
|
@@ -146,7 +146,7 @@ module ModuleCluster::Define::ModuleClusterCascadesToModule
|
|
146
146
|
###################################################
|
147
147
|
|
148
148
|
def extend_cascades_to_module_prepending_includes( *includes )
|
149
|
-
includes_module = anonymous_module_for_extend_object do
|
149
|
+
includes_module = anonymous_module_for_extend_object( 'CascadesToModule' ) do
|
150
150
|
unless is_a?( Class )
|
151
151
|
extend ModuleCluster::Define::ModuleClusterCascadesToModule
|
152
152
|
extend_cascades_to_module_prepending_includes( *includes )
|
@@ -164,7 +164,7 @@ module ModuleCluster::Define::ModuleClusterCascadesToModule
|
|
164
164
|
##################################################
|
165
165
|
|
166
166
|
def extend_cascades_to_module_prepending_extends( *extends )
|
167
|
-
extends_module = anonymous_module_for_extend_object do
|
167
|
+
extends_module = anonymous_module_for_extend_object( 'CascadesToModule' ) do
|
168
168
|
unless is_a?( Class )
|
169
169
|
extend ModuleCluster::Define::ModuleClusterCascadesToModule
|
170
170
|
extend_cascades_to_module_prepending_extends( *extends )
|
@@ -11,7 +11,7 @@ module ModuleCluster::Define::AnonymousModule
|
|
11
11
|
# anonymous_module_for_append_features #
|
12
12
|
##########################################
|
13
13
|
|
14
|
-
def anonymous_module_for_append_features( & method_block )
|
14
|
+
def anonymous_module_for_append_features( subset_string = '', & method_block )
|
15
15
|
|
16
16
|
module_instance = Module.new do
|
17
17
|
|
@@ -26,7 +26,7 @@ module ModuleCluster::Define::AnonymousModule
|
|
26
26
|
|
27
27
|
end
|
28
28
|
|
29
|
-
set_anonymous_module_constant( 'AppendFeatures', module_instance )
|
29
|
+
set_anonymous_module_constant( 'AppendFeatures' + subset_string, module_instance )
|
30
30
|
|
31
31
|
return module_instance
|
32
32
|
|
@@ -36,7 +36,7 @@ module ModuleCluster::Define::AnonymousModule
|
|
36
36
|
# anonymous_module_for_included #
|
37
37
|
###################################
|
38
38
|
|
39
|
-
def anonymous_module_for_included( & method_block )
|
39
|
+
def anonymous_module_for_included( subset_string = '', & method_block )
|
40
40
|
|
41
41
|
module_instance = Module.new do
|
42
42
|
|
@@ -51,7 +51,7 @@ module ModuleCluster::Define::AnonymousModule
|
|
51
51
|
|
52
52
|
end
|
53
53
|
|
54
|
-
set_anonymous_module_constant( 'Included', module_instance )
|
54
|
+
set_anonymous_module_constant( 'Included' + subset_string, module_instance )
|
55
55
|
|
56
56
|
return module_instance
|
57
57
|
|
@@ -61,7 +61,7 @@ module ModuleCluster::Define::AnonymousModule
|
|
61
61
|
# anonymous_module_for_extend_object #
|
62
62
|
########################################
|
63
63
|
|
64
|
-
def anonymous_module_for_extend_object( & method_block )
|
64
|
+
def anonymous_module_for_extend_object( subset_string = '', & method_block )
|
65
65
|
|
66
66
|
module_instance = Module.new do
|
67
67
|
|
@@ -76,7 +76,7 @@ module ModuleCluster::Define::AnonymousModule
|
|
76
76
|
|
77
77
|
end
|
78
78
|
|
79
|
-
set_anonymous_module_constant( 'ExtendObject', module_instance )
|
79
|
+
set_anonymous_module_constant( 'ExtendObject' + subset_string, module_instance )
|
80
80
|
|
81
81
|
return module_instance
|
82
82
|
|
@@ -86,7 +86,7 @@ module ModuleCluster::Define::AnonymousModule
|
|
86
86
|
# anonymous_module_for_extended #
|
87
87
|
###################################
|
88
88
|
|
89
|
-
def anonymous_module_for_extended( & method_block )
|
89
|
+
def anonymous_module_for_extended( subset_string = '', & method_block )
|
90
90
|
|
91
91
|
module_instance = Module.new do
|
92
92
|
|
@@ -101,7 +101,7 @@ module ModuleCluster::Define::AnonymousModule
|
|
101
101
|
|
102
102
|
end
|
103
103
|
|
104
|
-
set_anonymous_module_constant( 'Included', module_instance )
|
104
|
+
set_anonymous_module_constant( 'Included' + subset_string, module_instance )
|
105
105
|
|
106
106
|
return module_instance
|
107
107
|
|