module-cluster 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. data/lib/module-cluster.rb +17 -13
  2. data/lib/module-cluster/ModuleCluster.rb +8 -8
  3. data/lib/module-cluster/ModuleCluster/CascadeFeatures.rb +155 -0
  4. data/lib/module-cluster/ModuleCluster/ClusterStack.rb +102 -0
  5. data/lib/module-cluster/ModuleCluster/Define/Cluster.rb +203 -0
  6. data/lib/module-cluster/ModuleCluster/Define/ClusterCascades.rb +220 -0
  7. data/lib/module-cluster/ModuleCluster/Define/ClusterCascadesToClass.rb +209 -0
  8. data/lib/module-cluster/ModuleCluster/Define/ClusterCascadesToModule.rb +209 -0
  9. data/lib/module-cluster/ModuleCluster/Define/ClusterStack.rb +26 -0
  10. data/lib/module-cluster/ModuleCluster/Define/DedoubleAncestors.rb +22 -0
  11. data/lib/module-cluster/ModuleCluster/ExtendForCascade.rb +15 -0
  12. data/spec/ModuleCluster/Define/ClusterCascadesToClass_spec.rb +421 -0
  13. data/spec/ModuleCluster/Define/ClusterCascadesToModule_spec.rb +432 -0
  14. data/spec/ModuleCluster/Define/ClusterCascades_spec.rb +345 -0
  15. data/spec/ModuleCluster/Define/Cluster_spec.rb +275 -0
  16. data/spec/ModuleCluster_spec.rb +4 -4
  17. metadata +16 -14
  18. data/lib/module-cluster/ModuleCluster/Define/ModuleCluster.rb +0 -211
  19. data/lib/module-cluster/ModuleCluster/Define/ModuleClusterCascades.rb +0 -223
  20. data/lib/module-cluster/ModuleCluster/Define/ModuleClusterCascadesToClass.rb +0 -223
  21. data/lib/module-cluster/ModuleCluster/Define/ModuleClusterCascadesToModule.rb +0 -227
  22. data/lib/module-cluster/ModuleCluster/Define/_private_/AnonymousModule.rb +0 -121
  23. data/lib/module-cluster/ModuleCluster/Define/_private_/ClusterStack.rb +0 -55
  24. data/spec/ModuleCluster/Define/ModuleClusterCascadesToClass_spec.rb +0 -421
  25. data/spec/ModuleCluster/Define/ModuleClusterCascadesToModule_spec.rb +0 -432
  26. data/spec/ModuleCluster/Define/ModuleClusterCascades_spec.rb +0 -345
  27. data/spec/ModuleCluster/Define/ModuleCluster_spec.rb +0 -275
  28. data/spec/ModuleCluster/Define/_private_/ClusterStack_spec.rb +0 -24
@@ -1,223 +0,0 @@
1
-
2
- module ModuleCluster::Define::ModuleClusterCascades
3
-
4
- include ModuleCluster::Define::AnonymousModule
5
-
6
- ########################
7
- # self.include_block #
8
- ########################
9
-
10
- def self.include_block( cascade_method, *includes )
11
- return Proc.new do
12
- unless ( includes -= ancestors ).empty?
13
- extend ModuleCluster::Define::ModuleClusterCascades
14
- __send__( cascade_method, *includes )
15
- include( *includes.reverse )
16
- end
17
- end
18
- end
19
-
20
- #######################
21
- # self.extend_block #
22
- #######################
23
-
24
- def self.extend_block( cascade_method, *extends )
25
- return Proc.new do
26
- eigenclass = class << self ; self ; end
27
- unless ( extends -= eigenclass.ancestors ).empty?
28
- extend ModuleCluster::Define::ModuleClusterCascades
29
- __send__( cascade_method, *extends )
30
- extend( *extends.reverse )
31
- end
32
- end
33
- end
34
-
35
- ###############################
36
- # include_cascades_includes #
37
- ###############################
38
-
39
- def include_cascades_includes( *includes )
40
- include_block = ModuleCluster::Define::ModuleClusterCascades.include_block( :include_cascades_includes, *includes )
41
- includes_module = anonymous_module_for_included( 'Cascades', & include_block )
42
- clusterstack_module { include( includes_module ) }
43
- return self
44
- end
45
-
46
- ##############################
47
- # include_cascades_extends #
48
- ##############################
49
-
50
- def include_cascades_extends( *extends )
51
- extend_block = ModuleCluster::Define::ModuleClusterCascades.extend_block( :include_cascades_extends, *extends )
52
- extends_module = anonymous_module_for_included( 'Cascades', & extend_block )
53
- clusterstack_module { include( extends_module ) }
54
- return self
55
- end
56
-
57
- ###########################################
58
- # include_cascades_includes_and_extends #
59
- ###########################################
60
-
61
- def include_cascades_includes_and_extends( *includes_and_extends )
62
- include_cascades_includes( *includes_and_extends )
63
- include_cascades_extends( *includes_and_extends )
64
- return self
65
- end
66
-
67
- ##############################
68
- # extend_cascades_includes #
69
- ##############################
70
-
71
- def extend_cascades_includes( *includes )
72
- include_block = ModuleCluster::Define::ModuleClusterCascades.include_block( :extend_cascades_includes, *includes )
73
- includes_module = anonymous_module_for_extended( 'Cascades', & include_block )
74
- clusterstack_module { include( includes_module ) }
75
- return self
76
- end
77
-
78
- #############################
79
- # extend_cascades_extends #
80
- #############################
81
-
82
- def extend_cascades_extends( *extends )
83
- extend_block = ModuleCluster::Define::ModuleClusterCascades.extend_block( :extend_cascades_extends, *extends )
84
- extends_module = anonymous_module_for_extended( 'Cascades', & extend_block )
85
- clusterstack_module { include( extends_module ) }
86
- return self
87
- end
88
-
89
- ##########################################
90
- # extend_cascades_includes_and_extends #
91
- ##########################################
92
-
93
- def extend_cascades_includes_and_extends( *includes_and_extends )
94
- extend_cascades_includes( *includes_and_extends )
95
- extend_cascades_extends( *includes_and_extends )
96
- return self
97
- end
98
-
99
- ##########################################
100
- # include_cascades_prepending_includes #
101
- ##########################################
102
-
103
- def include_cascades_prepending_includes( *includes )
104
- include_block = ModuleCluster::Define::ModuleClusterCascades.include_block( :include_cascades_prepending_includes, *includes )
105
- includes_module = anonymous_module_for_append_features( 'Cascades', & include_block )
106
- clusterstack_module { include( includes_module ) }
107
- return self
108
- end
109
-
110
- #########################################
111
- # include_cascades_prepending_extends #
112
- #########################################
113
-
114
- def include_cascades_prepending_extends( *extends )
115
- extend_block = ModuleCluster::Define::ModuleClusterCascades.extend_block( :include_cascades_prepending_extends, *extends )
116
- extends_module = anonymous_module_for_append_features( 'Cascades', & extend_block )
117
- clusterstack_module { include( extends_module ) }
118
- return self
119
- end
120
-
121
- ######################################################
122
- # include_cascades_prepending_includes_and_extends #
123
- ######################################################
124
-
125
- def include_cascades_prepending_includes_and_extends( *includes_and_extends )
126
- include_cascades_prepending_includes( *includes_and_extends )
127
- include_cascades_prepending_extends( *includes_and_extends )
128
- return self
129
- end
130
-
131
- #########################################
132
- # extend_cascades_prepending_includes #
133
- #########################################
134
-
135
- def extend_cascades_prepending_includes( *includes )
136
- include_block = ModuleCluster::Define::ModuleClusterCascades.include_block( :extend_cascades_prepending_includes, *includes )
137
- includes_module = anonymous_module_for_extend_object( 'Cascades', & include_block )
138
- clusterstack_module { include( includes_module ) }
139
- return self
140
- end
141
-
142
- ########################################
143
- # extend_cascades_prepending_extends #
144
- ########################################
145
-
146
- def extend_cascades_prepending_extends( *extends )
147
- extend_block = ModuleCluster::Define::ModuleClusterCascades.extend_block( :extend_cascades_prepending_extends, *extends )
148
- extends_module = anonymous_module_for_extend_object( 'Cascades', & extend_block )
149
- clusterstack_module { include( extends_module ) }
150
- return self
151
- end
152
-
153
- #####################################################
154
- # extend_cascades_prepending_includes_and_extends #
155
- #####################################################
156
-
157
- def extend_cascades_prepending_includes_and_extends( *includes_and_extends )
158
- extend_cascades_prepending_includes( *includes_and_extends )
159
- extend_cascades_prepending_extends( *includes_and_extends )
160
- return self
161
- end
162
-
163
- #########################################
164
- # include_or_extend_cascades_includes #
165
- #########################################
166
-
167
- def include_or_extend_cascades_includes( *includes )
168
- include_cascades_includes( *includes )
169
- extend_cascades_includes( *includes )
170
- return self
171
- end
172
-
173
- ########################################
174
- # include_or_extend_cascades_extends #
175
- ########################################
176
-
177
- def include_or_extend_cascades_extends( *extends )
178
- include_cascades_extends( *extends )
179
- extend_cascades_extends( *extends )
180
- return self
181
- end
182
-
183
- #####################################################
184
- # include_or_extend_cascades_includes_and_extends #
185
- #####################################################
186
-
187
- def include_or_extend_cascades_includes_and_extends( *includes_and_extends )
188
- include_cascades_includes_and_extends( *includes_and_extends )
189
- extend_cascades_includes_and_extends( *includes_and_extends )
190
- return self
191
- end
192
-
193
- ####################################################
194
- # include_or_extend_cascades_prepending_includes #
195
- ####################################################
196
-
197
- def include_or_extend_cascades_prepending_includes( *includes )
198
- include_cascades_includes( *includes )
199
- extend_cascades_includes( *includes )
200
- return self
201
- end
202
-
203
- ###################################################
204
- # include_or_extend_cascades_prepending_extends #
205
- ###################################################
206
-
207
- def include_or_extend_cascades_prepending_extends( *extends )
208
- include_cascades_extends( *extends )
209
- extend_cascades_extends( *extends )
210
- return self
211
- end
212
-
213
- ################################################################
214
- # include_or_extend_cascades_prepending_includes_and_extends #
215
- ################################################################
216
-
217
- def include_or_extend_cascades_prepending_includes_and_extends( *includes_and_extends )
218
- include_cascades_prepending_includes_and_extends( *includes_and_extends )
219
- extend_cascades_prepending_includes_and_extends( *includes_and_extends )
220
- return self
221
- end
222
-
223
- end
@@ -1,223 +0,0 @@
1
-
2
- module ModuleCluster::Define::ModuleClusterCascadesToClass
3
-
4
- include ModuleCluster::Define::AnonymousModule
5
-
6
- ########################
7
- # self.include_block #
8
- ########################
9
-
10
- def self.include_block( cascade_method, *includes )
11
- return Proc.new do
12
- unless ( includes -= ancestors ).empty?
13
- extend ModuleCluster::Define::ModuleClusterCascadesToClass
14
- __send__( cascade_method, *includes )
15
- include( *includes.reverse ) if is_a?( Class )
16
- end
17
- end
18
- end
19
-
20
- #######################
21
- # self.extend_block #
22
- #######################
23
-
24
- def self.extend_block( cascade_method, *extends )
25
- return Proc.new do
26
- eigenclass = class << self ; self ; end
27
- unless ( extends -= eigenclass.ancestors ).empty?
28
- extend ModuleCluster::Define::ModuleClusterCascadesToClass
29
- __send__( cascade_method, *extends )
30
- extend( *extends.reverse ) if is_a?( Class )
31
- end
32
- end
33
- end
34
-
35
- ########################################
36
- # include_cascades_includes_to_class #
37
- ########################################
38
-
39
- def include_cascades_includes_to_class( *includes )
40
- include_block = ModuleCluster::Define::ModuleClusterCascadesToClass.include_block( :include_cascades_includes_to_class, *includes )
41
- includes_module = anonymous_module_for_included( 'CascadesToClass', & include_block )
42
- clusterstack_module { include( includes_module ) }
43
- return self
44
- end
45
-
46
- #######################################
47
- # include_cascades_extends_to_class #
48
- #######################################
49
-
50
- def include_cascades_extends_to_class( *extends )
51
- extend_block = ModuleCluster::Define::ModuleClusterCascadesToClass.extend_block( :include_cascades_extends_to_class, *extends )
52
- extends_module = anonymous_module_for_included( 'CascadesToClass', & extend_block )
53
- clusterstack_module { include( extends_module ) }
54
- return self
55
- end
56
-
57
- ####################################################
58
- # include_cascades_includes_and_extends_to_class #
59
- ####################################################
60
-
61
- def include_cascades_includes_and_extends_to_class( *includes_and_extends )
62
- include_cascades_includes_to_class( *includes_and_extends )
63
- include_cascades_extends_to_class( *includes_and_extends )
64
- return self
65
- end
66
-
67
- #######################################
68
- # extend_cascades_includes_to_class #
69
- #######################################
70
-
71
- def extend_cascades_includes_to_class( *includes )
72
- include_block = ModuleCluster::Define::ModuleClusterCascadesToClass.include_block( :extend_cascades_includes_to_class, *includes )
73
- includes_module = anonymous_module_for_extended( 'CascadesToClass', & include_block )
74
- clusterstack_module { include( includes_module ) }
75
- return self
76
- end
77
-
78
- ######################################
79
- # extend_cascades_extends_to_class #
80
- ######################################
81
-
82
- def extend_cascades_extends_to_class( *extends )
83
- extend_block = ModuleCluster::Define::ModuleClusterCascadesToClass.extend_block( :extend_cascades_extends_to_class, *extends )
84
- extends_module = anonymous_module_for_extended( 'CascadesToClass', & extend_block )
85
- clusterstack_module { include( extends_module ) }
86
- return self
87
- end
88
-
89
- ###################################################
90
- # extend_cascades_includes_and_extends_to_class #
91
- ###################################################
92
-
93
- def extend_cascades_includes_and_extends_to_class( *includes_and_extends )
94
- extend_cascades_includes_to_class( *includes_and_extends )
95
- extend_cascades_extends_to_class( *includes_and_extends )
96
- return self
97
- end
98
-
99
- ###################################################
100
- # include_cascades_to_class_prepending_includes #
101
- ###################################################
102
-
103
- def include_cascades_to_class_prepending_includes( *includes )
104
- include_block = ModuleCluster::Define::ModuleClusterCascadesToClass.include_block( :include_cascades_to_class_prepending_includes, *includes )
105
- includes_module = anonymous_module_for_append_features( 'CascadesToClass', & include_block )
106
- clusterstack_module { include( includes_module ) }
107
- return self
108
- end
109
-
110
- ##################################################
111
- # include_cascades_to_class_prepending_extends #
112
- ##################################################
113
-
114
- def include_cascades_to_class_prepending_extends( *extends )
115
- extend_block = ModuleCluster::Define::ModuleClusterCascadesToClass.extend_block( :include_cascades_to_class_prepending_extends, *extends )
116
- extends_module = anonymous_module_for_append_features( 'CascadesToClass', & extend_block )
117
- clusterstack_module { include( extends_module ) }
118
- return self
119
- end
120
-
121
- ###############################################################
122
- # include_cascades_to_class_prepending_includes_and_extends #
123
- ###############################################################
124
-
125
- def include_cascades_to_class_prepending_includes_and_extends( *includes_and_extends )
126
- include_cascades_to_class_prepending_includes( *includes_and_extends )
127
- include_cascades_to_class_prepending_extends( *includes_and_extends )
128
- return self
129
- end
130
-
131
- ##################################################
132
- # extend_cascades_to_class_prepending_includes #
133
- ##################################################
134
-
135
- def extend_cascades_to_class_prepending_includes( *includes )
136
- include_block = ModuleCluster::Define::ModuleClusterCascadesToClass.include_block( :extend_cascades_to_class_prepending_includes, *includes )
137
- includes_module = anonymous_module_for_extend_object( 'CascadesToClass', & include_block )
138
- clusterstack_module { include( includes_module ) }
139
- return self
140
- end
141
-
142
- #################################################
143
- # extend_cascades_to_class_prepending_extends #
144
- #################################################
145
-
146
- def extend_cascades_to_class_prepending_extends( *extends )
147
- extend_block = ModuleCluster::Define::ModuleClusterCascadesToClass.extend_block( :extend_cascades_to_class_prepending_extends, *extends )
148
- extends_module = anonymous_module_for_extend_object( 'CascadesToClass', & extend_block )
149
- clusterstack_module { include( extends_module ) }
150
- return self
151
- end
152
-
153
- ##############################################################
154
- # extend_cascades_to_class_prepending_includes_and_extends #
155
- ##############################################################
156
-
157
- def extend_cascades_to_class_prepending_includes_and_extends( *includes_and_extends )
158
- extend_cascades_to_class_prepending_includes( *includes_and_extends )
159
- extend_cascades_to_class_prepending_extends( *includes_and_extends )
160
- return self
161
- end
162
-
163
- ##################################################
164
- # include_or_extend_cascades_includes_to_class #
165
- ##################################################
166
-
167
- def include_or_extend_cascades_includes_to_class( *includes )
168
- include_cascades_includes_to_class( *includes )
169
- extend_cascades_includes_to_class( *includes )
170
- return self
171
- end
172
-
173
- #################################################
174
- # include_or_extend_cascades_extends_to_class #
175
- #################################################
176
-
177
- def include_or_extend_cascades_extends_to_class( *extends )
178
- include_cascades_extends_to_class( *extends )
179
- extend_cascades_extends_to_class( *extends )
180
- return self
181
- end
182
-
183
- ##############################################################
184
- # include_or_extend_cascades_includes_and_extends_to_class #
185
- ##############################################################
186
-
187
- def include_or_extend_cascades_includes_and_extends_to_class( *includes_and_extends )
188
- include_cascades_to_class_prepending_includes_and_extends( *includes_and_extends )
189
- extend_cascades_to_class_prepending_includes_and_extends( *includes_and_extends )
190
- return self
191
- end
192
-
193
- #############################################################
194
- # include_or_extend_cascades_to_class_prepending_includes #
195
- #############################################################
196
-
197
- def include_or_extend_cascades_to_class_prepending_includes( *includes )
198
- include_cascades_to_class_prepending_includes( *includes )
199
- extend_cascades_to_class_prepending_includes( *includes )
200
- return self
201
- end
202
-
203
- ############################################################
204
- # include_or_extend_cascades_to_class_prepending_extends #
205
- ############################################################
206
-
207
- def include_or_extend_cascades_to_class_prepending_extends( *extends )
208
- include_cascades_to_class_prepending_includes( *extends )
209
- extend_cascades_to_class_prepending_includes( *extends )
210
- return self
211
- end
212
-
213
- #########################################################################
214
- # include_or_extend_cascades_to_class_prepending_includes_and_extends #
215
- #########################################################################
216
-
217
- def include_or_extend_cascades_to_class_prepending_includes_and_extends( *includes_and_extends )
218
- include_cascades_to_class_prepending_includes_and_extends( *includes_and_extends )
219
- extend_cascades_to_class_prepending_includes_and_extends( *includes_and_extends )
220
- return self
221
- end
222
-
223
- end
@@ -1,227 +0,0 @@
1
-
2
- module ModuleCluster::Define::ModuleClusterCascadesToModule
3
-
4
- include ModuleCluster::Define::AnonymousModule
5
-
6
- ########################
7
- # self.include_block #
8
- ########################
9
-
10
- def self.include_block( cascade_method, *includes )
11
- return Proc.new do
12
- unless is_a?( Class )
13
- extend ModuleCluster::Define::ModuleClusterCascadesToModule
14
- __send__( cascade_method, *includes )
15
- unless ( includes -= ancestors ).empty?
16
- include( *includes.reverse )
17
- end
18
- end
19
- end
20
- end
21
-
22
- #######################
23
- # self.extend_block #
24
- #######################
25
-
26
- def self.extend_block( cascade_method, *extends )
27
- return Proc.new do
28
- unless is_a?( Class )
29
- eigenclass = class << self ; self ; end
30
- extend ModuleCluster::Define::ModuleClusterCascadesToModule
31
- __send__( cascade_method, *extends )
32
- unless ( extends -= eigenclass.ancestors ).empty?
33
- extend( *extends.reverse )
34
- end
35
- end
36
- end
37
- end
38
-
39
- #########################################
40
- # include_cascades_includes_to_module #
41
- #########################################
42
-
43
- def include_cascades_includes_to_module( *includes )
44
- include_block = ModuleCluster::Define::ModuleClusterCascadesToModule.include_block( :include_cascades_includes_to_module, *includes )
45
- includes_module = anonymous_module_for_included( 'CascadesToModule', & include_block )
46
- clusterstack_module { include( includes_module ) }
47
- return self
48
- end
49
-
50
- ########################################
51
- # include_cascades_extends_to_module #
52
- ########################################
53
-
54
- def include_cascades_extends_to_module( *extends )
55
- extend_block = ModuleCluster::Define::ModuleClusterCascadesToModule.extend_block( :include_cascades_extends_to_module, *extends )
56
- extends_module = anonymous_module_for_included( 'CascadesToModule', & extend_block )
57
- clusterstack_module { include( extends_module ) }
58
- return self
59
- end
60
-
61
- #####################################################
62
- # include_cascades_includes_and_extends_to_module #
63
- #####################################################
64
-
65
- def include_cascades_includes_and_extends_to_module( *includes_and_extends )
66
- include_cascades_includes_to_module( *includes_and_extends )
67
- include_cascades_extends_to_module( *includes_and_extends )
68
- return self
69
- end
70
-
71
- ########################################
72
- # extend_cascades_includes_to_module #
73
- ########################################
74
-
75
- def extend_cascades_includes_to_module( *includes )
76
- include_block = ModuleCluster::Define::ModuleClusterCascadesToModule.include_block( :extend_cascades_includes_to_module, *includes )
77
- includes_module = anonymous_module_for_extended( 'CascadesToModule', & include_block )
78
- clusterstack_module { include( includes_module ) }
79
- return self
80
- end
81
-
82
- #######################################
83
- # extend_cascades_extends_to_module #
84
- #######################################
85
-
86
- def extend_cascades_extends_to_module( *extends )
87
- extend_block = ModuleCluster::Define::ModuleClusterCascadesToModule.extend_block( :extend_cascades_extends_to_module, *extends )
88
- extends_module = anonymous_module_for_extended( 'CascadesToModule', & extend_block )
89
- clusterstack_module { include( extends_module ) }
90
- return self
91
- end
92
-
93
- ####################################################
94
- # extend_cascades_includes_and_extends_to_module #
95
- ####################################################
96
-
97
- def extend_cascades_includes_and_extends_to_module( *includes_and_extends )
98
- extend_cascades_includes_to_module( *includes_and_extends )
99
- extend_cascades_extends_to_module( *includes_and_extends )
100
- return self
101
- end
102
-
103
- ####################################################
104
- # include_cascades_to_module_prepending_includes #
105
- ####################################################
106
-
107
- def include_cascades_to_module_prepending_includes( *includes )
108
- include_block = ModuleCluster::Define::ModuleClusterCascadesToModule.include_block( :include_cascades_to_module_prepending_includes, *includes )
109
- includes_module = anonymous_module_for_append_features( 'CascadesToModule', & include_block )
110
- clusterstack_module { include( includes_module ) }
111
- return self
112
- end
113
-
114
- ###################################################
115
- # include_cascades_to_module_prepending_extends #
116
- ###################################################
117
-
118
- def include_cascades_to_module_prepending_extends( *extends )
119
- extend_block = ModuleCluster::Define::ModuleClusterCascadesToModule.extend_block( :include_cascades_to_module_prepending_extends, *extends )
120
- extends_module = anonymous_module_for_append_features( 'CascadesToModule', & extend_block )
121
- clusterstack_module { include( extends_module ) }
122
- return self
123
- end
124
-
125
- ################################################################
126
- # include_cascades_to_module_prepending_includes_and_extends #
127
- ################################################################
128
-
129
- def include_cascades_to_module_prepending_includes_and_extends( *includes_and_extends )
130
- include_cascades_to_module_prepending_includes( *includes_and_extends )
131
- include_cascades_to_module_prepending_extends( *includes_and_extends )
132
- return self
133
- end
134
-
135
- ###################################################
136
- # extend_cascades_to_module_prepending_includes #
137
- ###################################################
138
-
139
- def extend_cascades_to_module_prepending_includes( *includes )
140
- include_block = ModuleCluster::Define::ModuleClusterCascadesToModule.include_block( :extend_cascades_to_module_prepending_includes, *includes )
141
- includes_module = anonymous_module_for_extend_object( 'CascadesToModule', & include_block )
142
- clusterstack_module { include( includes_module ) }
143
- return self
144
- end
145
-
146
- ##################################################
147
- # extend_cascades_to_module_prepending_extends #
148
- ##################################################
149
-
150
- def extend_cascades_to_module_prepending_extends( *extends )
151
- extend_block = ModuleCluster::Define::ModuleClusterCascadesToModule.extend_block( :extend_cascades_to_module_prepending_extends, *extends )
152
- extends_module = anonymous_module_for_extend_object( 'CascadesToModule', & extend_block )
153
- clusterstack_module { include( extends_module ) }
154
- return self
155
- end
156
-
157
- ###############################################################
158
- # extend_cascades_to_module_prepending_includes_and_extends #
159
- ###############################################################
160
-
161
- def extend_cascades_to_module_prepending_includes_and_extends( *includes_and_extends )
162
- extend_cascades_to_module_prepending_includes( *includes_and_extends )
163
- extend_cascades_to_module_prepending_extends( *includes_and_extends )
164
- return self
165
- end
166
-
167
- ###################################################
168
- # include_or_extend_cascades_includes_to_module #
169
- ###################################################
170
-
171
- def include_or_extend_cascades_includes_to_module( *includes )
172
- include_cascades_includes_to_module( *includes )
173
- extend_cascades_includes_to_module( *includes )
174
- return self
175
- end
176
-
177
- ##################################################
178
- # include_or_extend_cascades_extends_to_module #
179
- ##################################################
180
-
181
- def include_or_extend_cascades_extends_to_module( *extends )
182
- include_cascades_extends_to_module( *extends )
183
- extend_cascades_extends_to_module( *extends )
184
- return self
185
- end
186
-
187
- ###############################################################
188
- # include_or_extend_cascades_includes_and_extends_to_module #
189
- ###############################################################
190
-
191
- def include_or_extend_cascades_includes_and_extends_to_module( *includes_and_extends )
192
- include_cascades_includes_and_extends_to_module( *includes_and_extends )
193
- extend_cascades_includes_and_extends_to_module( *includes_and_extends )
194
- return self
195
- end
196
-
197
- ##############################################################
198
- # include_or_extend_cascades_to_module_prepending_includes #
199
- ##############################################################
200
-
201
- def include_or_extend_cascades_to_module_prepending_includes( *includes )
202
- include_cascades_to_module_prepending_includes( *includes )
203
- extend_cascades_to_module_prepending_includes( *includes )
204
- return self
205
- end
206
-
207
- #############################################################
208
- # include_or_extend_cascades_to_module_prepending_extends #
209
- #############################################################
210
-
211
- def include_or_extend_cascades_to_module_prepending_extends( *extends )
212
- include_cascades_to_module_prepending_extends( *extends )
213
- extend_cascades_to_module_prepending_extends( *extends )
214
- return self
215
- end
216
-
217
- ##########################################################################
218
- # include_or_extend_cascades_to_module_prepending_includes_and_extends #
219
- ##########################################################################
220
-
221
- def include_or_extend_cascades_to_module_prepending_includes_and_extends( *includes_and_extends )
222
- include_cascades_to_module_prepending_includes_and_extends( *includes_and_extends )
223
- extend_cascades_to_module_prepending_includes_and_extends( *includes_and_extends )
224
- return self
225
- end
226
-
227
- end