module-cluster 1.4.8 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. data/README.md +127 -337
  2. data/lib/module-cluster.rb +1 -153
  3. data/lib/module/cluster.rb +341 -0
  4. data/lib/module/cluster/class_support.rb +22 -0
  5. data/lib/module/cluster/cluster.rb +10 -0
  6. data/lib/module/cluster/cluster/cluster_interface.rb +550 -0
  7. data/lib/module/cluster/exception/module_not_in_stack.rb +26 -0
  8. data/lib/module/cluster/instance_controller.rb +14 -0
  9. data/lib/module/cluster/instance_controller/hook_controller.rb +33 -0
  10. data/lib/module/cluster/instance_controller/hook_controller/chain_proxy.rb +511 -0
  11. data/lib/module/cluster/instance_controller/hook_controller/hook_controller_interface.rb +830 -0
  12. data/lib/module/cluster/instance_controller/instance_controller_interface.rb +269 -0
  13. data/lib/module/cluster/instance_controller/multiple_hook_controller_proxy.rb +359 -0
  14. data/lib/module/cluster/instance_controller/multiple_hook_controller_proxy/chain_proxy.rb +442 -0
  15. data/lib/module/cluster/module_support.rb +67 -0
  16. data/lib/module/namespaces.rb +13 -0
  17. data/lib/module/requires.rb +32 -0
  18. data/spec/module/cluster/cluster_spec.rb +473 -0
  19. data/spec/module/cluster/instance_controller/hook_controller_spec.rb +922 -0
  20. data/spec/module/cluster/instance_controller/multiple_hook_controller_proxy_spec.rb +1240 -0
  21. data/spec/module/cluster_spec.rb +1794 -0
  22. metadata +27 -98
  23. data/README.rdoc +0 -395
  24. data/lib/module-cluster/ModuleCluster.rb +0 -9
  25. data/lib/module-cluster/ModuleCluster/Define.rb +0 -12
  26. data/lib/module-cluster/ModuleCluster/Define/Block.rb +0 -9
  27. data/lib/module-cluster/ModuleCluster/Define/Block/CascadingClass.rb +0 -83
  28. data/lib/module-cluster/ModuleCluster/Define/Block/CascadingClassOrModule.rb +0 -70
  29. data/lib/module-cluster/ModuleCluster/Define/Block/CascadingModule.rb +0 -79
  30. data/lib/module-cluster/ModuleCluster/Define/Block/CascadingModuleOrSubclass.rb +0 -21
  31. data/lib/module-cluster/ModuleCluster/Define/Block/Class.rb +0 -77
  32. data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrInstance.rb +0 -78
  33. data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModule.rb +0 -78
  34. data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModuleOrInstance.rb +0 -78
  35. data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModuleOrSubclass.rb +0 -36
  36. data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrSubclass.rb +0 -29
  37. data/lib/module-cluster/ModuleCluster/Define/Block/Instance.rb +0 -45
  38. data/lib/module-cluster/ModuleCluster/Define/Block/Module.rb +0 -77
  39. data/lib/module-cluster/ModuleCluster/Define/Block/ModuleOrInstance.rb +0 -78
  40. data/lib/module-cluster/ModuleCluster/Define/Block/ModuleOrSubclass.rb +0 -29
  41. data/lib/module-cluster/ModuleCluster/Define/Block/Subclass.rb +0 -56
  42. data/lib/module-cluster/ModuleCluster/Define/ClassCluster.rb +0 -193
  43. data/lib/module-cluster/ModuleCluster/Define/ClassOrInstanceCluster.rb +0 -128
  44. data/lib/module-cluster/ModuleCluster/Define/Cluster.rb +0 -181
  45. data/lib/module-cluster/ModuleCluster/Define/ClusterCascades.rb +0 -185
  46. data/lib/module-cluster/ModuleCluster/Define/ClusterCascadesToClass.rb +0 -181
  47. data/lib/module-cluster/ModuleCluster/Define/ClusterCascadesToModule.rb +0 -181
  48. data/lib/module-cluster/ModuleCluster/Define/Deprecated.rb +0 -40
  49. data/lib/module-cluster/ModuleCluster/Define/InstanceCluster.rb +0 -45
  50. data/lib/module-cluster/ModuleCluster/Define/ModuleCluster.rb +0 -193
  51. data/lib/module-cluster/ModuleCluster/Define/ModuleOrClassCluster.rb +0 -209
  52. data/lib/module-cluster/ModuleCluster/Define/ModuleOrInstanceCluster.rb +0 -128
  53. data/lib/module-cluster/ModuleCluster/Define/Status.rb +0 -106
  54. data/lib/module-cluster/ModuleCluster/Suspend.rb +0 -7
  55. data/lib/module-cluster/ModuleCluster/Suspend/Hooks.rb +0 -315
  56. data/lib/module-cluster/ModuleCluster/Suspend/WithoutHooks.rb +0 -153
  57. data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures.rb +0 -77
  58. data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures/ClusterStack.rb +0 -44
  59. data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures/PerformCascades.rb +0 -292
  60. data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures/Subclass.rb +0 -24
  61. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack.rb +0 -12
  62. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block.rb +0 -9
  63. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Class.rb +0 -36
  64. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Inherited.rb +0 -20
  65. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Instance.rb +0 -20
  66. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Module.rb +0 -36
  67. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Set.rb +0 -6
  68. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Extends.rb +0 -140
  69. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Includes.rb +0 -110
  70. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/PrependsExtends.rb +0 -140
  71. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/PrependsIncludes.rb +0 -110
  72. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Set.rb +0 -35
  73. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Set/MultiSetProxy.rb +0 -359
  74. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Status.rb +0 -55
  75. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Suspend.rb +0 -199
  76. data/lib/module-cluster/_private_/ModuleCluster/ExtendForCascade.rb +0 -34
  77. data/spec/ModuleCluster/Define/Block/CascadingClassOrModule_spec.rb +0 -285
  78. data/spec/ModuleCluster/Define/Block/CascadingClass_spec.rb +0 -254
  79. data/spec/ModuleCluster/Define/Block/CascadingModuleOrSubclass_spec.rb +0 -56
  80. data/spec/ModuleCluster/Define/Block/CascadingModule_spec.rb +0 -278
  81. data/spec/ModuleCluster/Define/Block/ClassOrInstance_spec.rb +0 -230
  82. data/spec/ModuleCluster/Define/Block/ClassOrModuleOrInstance_spec.rb +0 -238
  83. data/spec/ModuleCluster/Define/Block/ClassOrModuleOrSubclass_spec.rb +0 -54
  84. data/spec/ModuleCluster/Define/Block/ClassOrModule_spec.rb +0 -231
  85. data/spec/ModuleCluster/Define/Block/ClassOrSubclass_spec.rb +0 -54
  86. data/spec/ModuleCluster/Define/Block/Class_spec.rb +0 -224
  87. data/spec/ModuleCluster/Define/Block/Instance_spec.rb +0 -78
  88. data/spec/ModuleCluster/Define/Block/ModuleOrInstance_spec.rb +0 -54
  89. data/spec/ModuleCluster/Define/Block/ModuleOrSubclass_spec.rb +0 -51
  90. data/spec/ModuleCluster/Define/Block/Module_spec.rb +0 -230
  91. data/spec/ModuleCluster/Define/Block/Subclass_spec.rb +0 -73
  92. data/spec/ModuleCluster/Define/Block_spec.rb +0 -18
  93. data/spec/ModuleCluster/Define/ClassCluster_spec.rb +0 -728
  94. data/spec/ModuleCluster/Define/ClassOrInstanceCluster_spec.rb +0 -576
  95. data/spec/ModuleCluster/Define/ClusterCascadesToClass_spec.rb +0 -659
  96. data/spec/ModuleCluster/Define/ClusterCascadesToModule_spec.rb +0 -678
  97. data/spec/ModuleCluster/Define/ClusterCascades_spec.rb +0 -644
  98. data/spec/ModuleCluster/Define/Cluster_spec.rb +0 -708
  99. data/spec/ModuleCluster/Define/InstanceCluster_spec.rb +0 -102
  100. data/spec/ModuleCluster/Define/ModuleCluster_spec.rb +0 -728
  101. data/spec/ModuleCluster/Define/ModuleOrClassCluster_spec.rb +0 -728
  102. data/spec/ModuleCluster/Define/ModuleOrInstanceCluster_spec.rb +0 -576
  103. data/spec/ModuleCluster/Suspend/Hooks_spec.rb +0 -573
  104. data/spec/ModuleCluster/Suspend/WithoutHooks_spec.rb +0 -559
  105. data/spec/ModuleCluster_spec.rb +0 -15
  106. data/spec/_private_/ModuleCluster/CascadeFeatures/PerformCascades_spec.rb +0 -386
  107. data/spec/_private_/ModuleCluster/ClusterStack/Set/MultiSetProxy_spec.rb +0 -419
  108. data/spec/_private_/ModuleCluster/ClusterStack/Suspend_spec.rb +0 -242
@@ -1,40 +0,0 @@
1
-
2
- module ::ModuleCluster::Define::Deprecated
3
-
4
- def define_module_included
5
- raise NoMethodError, 'This method has been replaced by :include_also_includes and :include_also_extends.'
6
- end
7
-
8
- def define_module_extended
9
- raise NoMethodError, 'This method has been replaced by :extend_also_includes and :extend_also_extends.'
10
- end
11
-
12
- def define_module_cluster
13
- raise NoMethodError, 'This method has been replaced by :include_also_includes_and_extends and :extend_also_includes_and_extends.'
14
- end
15
-
16
- def define_module_included_cascades
17
- raise NoMethodError, 'This method has been replaced by :include_cascades_includes and :include_cascades_extends.'
18
- end
19
-
20
- def define_module_extended_cascades
21
- raise NoMethodError, 'This method has been replaced by :extend_cascades_includes and :extend_cascades_extends.'
22
- end
23
-
24
- def define_module_cluster_cascades
25
- raise NoMethodError, 'This method has been replaced by :include_cascades_includes_and_extends and :extend_cascades_includes_and_extends.'
26
- end
27
-
28
- def define_module_included_cascades_to_class
29
- raise NoMethodError, 'This method has been replaced by :include_cascades_includes_to_class and :include_cascades_extends_to_class.'
30
- end
31
-
32
- def define_module_extended_cascades_to_class
33
- raise NoMethodError, 'This method has been replaced by :extend_cascades_includes_to_class and :extend_cascades_extends_to_class.'
34
- end
35
-
36
- def define_module_cluster_cascades_to_class
37
- raise NoMethodError, 'This method has been replaced by :include_cascades_includes_and_extends_to_class and :extend_cascades_includes_and_extends_to_class.'
38
- end
39
-
40
- end
@@ -1,45 +0,0 @@
1
-
2
- module ::ModuleCluster::Define::InstanceCluster
3
-
4
- include ::ModuleCluster::CascadeFeatures::ClusterStack
5
- include ::ModuleCluster::Suspend::WithoutHooks
6
-
7
- extend ::ModuleCluster::ExtendForCascade
8
-
9
- ####################################
10
- # self.should_include_or_extend? #
11
- ####################################
12
-
13
- def self.should_include_or_extend?( hooked_instance )
14
- should_include_or_extend = false
15
- unless hooked_instance.is_a?( Module )
16
- should_include_or_extend = true
17
- end
18
- return should_include_or_extend
19
- end
20
-
21
- ##########################
22
- # self.should_cascade? #
23
- ##########################
24
-
25
- def self.should_cascade?( hooked_instance )
26
- return false
27
- end
28
-
29
- ##################################
30
- # instance_extend_also_extends #
31
- ##################################
32
-
33
- def instance_extend_also_extends( *extends, & runtime_extends_block )
34
- return cluster_stack.instance_extend_extends( ::ModuleCluster::Define::Cluster, __method__, extends, runtime_extends_block )
35
- end
36
-
37
- ######################################
38
- # instance_extend_prepends_extends #
39
- ######################################
40
-
41
- def instance_extend_prepends_extends( *extends, & runtime_extends_block )
42
- return cluster_stack.instance_extend_prepends_extends( ::ModuleCluster::Define::Cluster, __method__, extends, runtime_extends_block )
43
- end
44
-
45
- end
@@ -1,193 +0,0 @@
1
-
2
- module ::ModuleCluster::Define::ModuleCluster
3
-
4
- include ::ModuleCluster::CascadeFeatures::ClusterStack
5
- include ::ModuleCluster::Suspend::WithoutHooks
6
-
7
- extend ::ModuleCluster::ExtendForCascade
8
-
9
- ####################################
10
- # self.should_include_or_extend? #
11
- ####################################
12
-
13
- def self.should_include_or_extend?( hooked_instance )
14
- should_include_or_extend = false
15
- if hooked_instance.is_a?( Module ) and ! hooked_instance.is_a?( Class )
16
- should_include_or_extend = true
17
- end
18
- return should_include_or_extend
19
- end
20
-
21
- ##########################
22
- # self.should_cascade? #
23
- ##########################
24
-
25
- def self.should_cascade?( hooked_instance )
26
- return false
27
- end
28
-
29
- ##################################
30
- # module_include_also_includes #
31
- ##################################
32
-
33
- def module_include_also_includes( *includes, & runtime_includes_block )
34
- return cluster_stack.module_include_includes( ::ModuleCluster::Define::Cluster, __method__, includes, runtime_includes_block )
35
- end
36
-
37
- #################################
38
- # module_include_also_extends #
39
- #################################
40
-
41
- def module_include_also_extends( *extends, & runtime_extends_block )
42
- return cluster_stack.module_include_extends( ::ModuleCluster::Define::Cluster, __method__, extends, runtime_extends_block )
43
- end
44
-
45
- ##############################################
46
- # module_include_also_includes_and_extends #
47
- ##############################################
48
-
49
- def module_include_also_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
50
- include_set = module_include_also_includes( *includes_and_extends, & runtime_includes_and_extends_block )
51
- extend_set = module_include_also_extends( *includes_and_extends, & runtime_includes_and_extends_block )
52
- return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
53
- end
54
-
55
- #################################
56
- # module_extend_also_includes #
57
- #################################
58
-
59
- def module_extend_also_includes( *includes, & runtime_includes_block )
60
- return cluster_stack.module_extend_includes( ::ModuleCluster::Define::Cluster, __method__, includes, runtime_includes_block )
61
- end
62
-
63
- ################################
64
- # module_extend_also_extends #
65
- ################################
66
-
67
- def module_extend_also_extends( *extends, & runtime_extends_block )
68
- return cluster_stack.module_extend_extends( ::ModuleCluster::Define::Cluster, __method__, extends, runtime_extends_block )
69
- end
70
-
71
- #############################################
72
- # module_extend_also_includes_and_extends #
73
- #############################################
74
-
75
- def module_extend_also_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
76
- include_set = module_extend_also_includes( *includes_and_extends, & runtime_includes_and_extends_block )
77
- extend_set = module_extend_also_extends( *includes_and_extends, & runtime_includes_and_extends_block )
78
- return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
79
- end
80
-
81
- ######################################
82
- # module_include_prepends_includes #
83
- ######################################
84
-
85
- def module_include_prepends_includes( *includes, & runtime_includes_block )
86
- return cluster_stack.module_include_prepends_includes( ::ModuleCluster::Define::Cluster, __method__, includes, runtime_includes_block )
87
- end
88
-
89
- #####################################
90
- # module_include_prepends_extends #
91
- #####################################
92
-
93
- def module_include_prepends_extends( *extends, & runtime_extends_block )
94
- return cluster_stack.module_include_prepends_extends( ::ModuleCluster::Define::Cluster, __method__, extends, runtime_extends_block )
95
- end
96
-
97
- ##################################################
98
- # module_include_prepends_includes_and_extends #
99
- ##################################################
100
-
101
- def module_include_prepends_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
102
- include_set = module_include_prepends_includes( *includes_and_extends, & runtime_includes_and_extends_block )
103
- extend_set = module_include_prepends_extends( *includes_and_extends, & runtime_includes_and_extends_block )
104
- return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
105
- end
106
-
107
- #####################################
108
- # module_extend_prepends_includes #
109
- #####################################
110
-
111
- def module_extend_prepends_includes( *includes, & runtime_includes_block )
112
- return cluster_stack.module_extend_prepends_includes( ::ModuleCluster::Define::Cluster, __method__, includes, runtime_includes_block )
113
- end
114
-
115
- ####################################
116
- # module_extend_prepends_extends #
117
- ####################################
118
-
119
- def module_extend_prepends_extends( *extends, & runtime_extends_block )
120
- return cluster_stack.module_extend_prepends_extends( ::ModuleCluster::Define::Cluster, __method__, extends, runtime_extends_block )
121
- end
122
-
123
- #################################################
124
- # module_extend_prepends_includes_and_extends #
125
- #################################################
126
-
127
- def module_extend_prepends_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
128
- include_set = module_extend_prepends_includes( *includes_and_extends, & runtime_includes_and_extends_block )
129
- extend_set = module_extend_prepends_extends( *includes_and_extends, & runtime_includes_and_extends_block )
130
- return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
131
- end
132
-
133
- ############################################
134
- # module_include_or_extend_also_includes #
135
- ############################################
136
-
137
- def module_include_or_extend_also_includes( *includes, & runtime_includes_block )
138
- include_set = module_include_also_includes( *includes, & runtime_includes_block )
139
- extend_set = module_extend_also_includes( *includes, & runtime_includes_block )
140
- return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
141
- end
142
-
143
- ###########################################
144
- # module_include_or_extend_also_extends #
145
- ###########################################
146
-
147
- def module_include_or_extend_also_extends( *extends, & runtime_extends_block )
148
- include_set = module_include_also_extends( *extends, & runtime_extends_block )
149
- extend_set = module_extend_also_extends( *extends, & runtime_extends_block )
150
- return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
151
- end
152
-
153
- ########################################################
154
- # module_include_or_extend_also_includes_and_extends #
155
- ########################################################
156
-
157
- def module_include_or_extend_also_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
158
- include_set = module_include_prepends_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
159
- extend_set = module_extend_prepends_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
160
- return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
161
- end
162
-
163
- ################################################
164
- # module_include_or_extend_prepends_includes #
165
- ################################################
166
-
167
- def module_include_or_extend_prepends_includes( *includes, & runtime_includes_block )
168
- include_set = module_include_prepends_includes( *includes, & runtime_includes_block )
169
- extend_set = module_extend_prepends_includes( *includes, & runtime_includes_block )
170
- return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
171
- end
172
-
173
- ###############################################
174
- # module_include_or_extend_prepends_extends #
175
- ###############################################
176
-
177
- def module_include_or_extend_prepends_extends( *extends, & runtime_extends_block )
178
- include_set = module_include_prepends_extends( *extends, & runtime_extends_block )
179
- extend_set = module_extend_prepends_extends( *extends, & runtime_extends_block )
180
- return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
181
- end
182
-
183
- ############################################################
184
- # module_include_or_extend_prepends_includes_and_extends #
185
- ############################################################
186
-
187
- def module_include_or_extend_prepends_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
188
- include_set = module_include_prepends_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
189
- extend_set = module_extend_prepends_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
190
- return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
191
- end
192
-
193
- end
@@ -1,209 +0,0 @@
1
-
2
- module ::ModuleCluster::Define::ModuleOrClassCluster
3
-
4
- include ::ModuleCluster::CascadeFeatures::ClusterStack
5
- include ::ModuleCluster::Suspend::WithoutHooks
6
-
7
- extend ::ModuleCluster::ExtendForCascade
8
-
9
- ####################################
10
- # self.should_include_or_extend? #
11
- ####################################
12
-
13
- def self.should_include_or_extend?( class_or_module_or_instance )
14
- should_include_or_extend = false
15
- if class_or_module_or_instance.is_a?( Module )
16
- should_include_or_extend = true
17
- end
18
- return should_include_or_extend
19
- end
20
-
21
- ##########################
22
- # self.should_cascade? #
23
- ##########################
24
-
25
- def self.should_cascade?( class_or_module_or_instance )
26
- return false
27
- end
28
-
29
- ###########################################
30
- # module_or_class_include_also_includes #
31
- ###########################################
32
-
33
- def module_or_class_include_also_includes( *includes, & runtime_includes_block )
34
- include_set = cluster_stack.module_include_includes( ::ModuleCluster::Define::ModuleOrClassCluster, __method__, includes, runtime_includes_block )
35
- extend_set = cluster_stack.class_include_includes( ::ModuleCluster::Define::ModuleOrClassCluster, __method__, includes, runtime_includes_block )
36
- return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
37
- end
38
-
39
- ##########################################
40
- # module_or_class_include_also_extends #
41
- ##########################################
42
-
43
- def module_or_class_include_also_extends( *extends, & runtime_extends_block )
44
- include_set = cluster_stack.module_include_extends( ::ModuleCluster::Define::ModuleOrClassCluster, __method__, extends, runtime_extends_block )
45
- extend_set = cluster_stack.class_include_extends( ::ModuleCluster::Define::ModuleOrClassCluster, __method__, extends, runtime_extends_block )
46
- return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
47
- end
48
-
49
- #######################################################
50
- # module_or_class_include_also_includes_and_extends #
51
- #######################################################
52
-
53
- def module_or_class_include_also_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
54
- include_set = cluster_stack.module_include_includes_and_extends( ::ModuleCluster::Define::ModuleOrClassCluster, __method__, includes_and_extends, runtime_includes_and_extends_block )
55
- extend_set = cluster_stack.class_include_includes_and_extends( ::ModuleCluster::Define::ModuleOrClassCluster, __method__, includes_and_extends, runtime_includes_and_extends_block )
56
- return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
57
- end
58
-
59
- ##########################################
60
- # module_or_class_extend_also_includes #
61
- ##########################################
62
-
63
- def module_or_class_extend_also_includes( *includes, & runtime_includes_block )
64
- include_set = cluster_stack.module_extend_includes( ::ModuleCluster::Define::ModuleOrClassCluster, __method__, includes, runtime_includes_block )
65
- extend_set = cluster_stack.class_extend_includes( ::ModuleCluster::Define::ModuleOrClassCluster, __method__, includes, runtime_includes_block )
66
- return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
67
- end
68
-
69
- #########################################
70
- # module_or_class_extend_also_extends #
71
- #########################################
72
-
73
- def module_or_class_extend_also_extends( *extends, & runtime_extends_block )
74
- include_set = cluster_stack.module_extend_extends( ::ModuleCluster::Define::ModuleOrClassCluster, __method__, extends, runtime_extends_block )
75
- extend_set = cluster_stack.class_extend_extends( ::ModuleCluster::Define::ModuleOrClassCluster, __method__, extends, runtime_extends_block )
76
- return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
77
- end
78
-
79
- ######################################################
80
- # module_or_class_extend_also_includes_and_extends #
81
- ######################################################
82
-
83
- def module_or_class_extend_also_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
84
- include_set = cluster_stack.module_extend_includes_and_extends( ::ModuleCluster::Define::ModuleOrClassCluster, __method__, includes_and_extends, runtime_includes_and_extends_block )
85
- extend_set = cluster_stack.class_extend_includes_and_extends( ::ModuleCluster::Define::ModuleOrClassCluster, __method__, includes_and_extends, runtime_includes_and_extends_block )
86
- return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
87
- end
88
-
89
- ###############################################
90
- # module_or_class_include_prepends_includes #
91
- ###############################################
92
-
93
- def module_or_class_include_prepends_includes( *includes, & runtime_includes_block )
94
- include_set = cluster_stack.module_include_prepends_includes( ::ModuleCluster::Define::ModuleOrClassCluster, __method__, includes, runtime_includes_block )
95
- extend_set = cluster_stack.class_include_prepends_includes( ::ModuleCluster::Define::ModuleOrClassCluster, __method__, includes, runtime_includes_block )
96
- return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
97
- end
98
-
99
- ##############################################
100
- # module_or_class_include_prepends_extends #
101
- ##############################################
102
-
103
- def module_or_class_include_prepends_extends( *extends, & runtime_extends_block )
104
- include_set = cluster_stack.module_include_prepends_extends( ::ModuleCluster::Define::ModuleOrClassCluster, __method__, extends, runtime_extends_block )
105
- extend_set = cluster_stack.class_include_prepends_extends( ::ModuleCluster::Define::ModuleOrClassCluster, __method__, extends, runtime_extends_block )
106
- return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
107
- end
108
-
109
- ###########################################################
110
- # module_or_class_include_prepends_includes_and_extends #
111
- ###########################################################
112
-
113
- def module_or_class_include_prepends_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
114
- include_set = cluster_stack.module_include_prepends_includes_and_extends( ::ModuleCluster::Define::ModuleOrClassCluster, __method__, includes_and_extends, runtime_includes_and_extends_block )
115
- extend_set = cluster_stack.class_include_prepends_includes_and_extends( ::ModuleCluster::Define::ModuleOrClassCluster, __method__, includes_and_extends, runtime_includes_and_extends_block )
116
- return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
117
- end
118
-
119
- ##############################################
120
- # module_or_class_extend_prepends_includes #
121
- ##############################################
122
-
123
- def module_or_class_extend_prepends_includes( *includes, & runtime_includes_block )
124
- include_set = cluster_stack.module_extend_prepends_includes( ::ModuleCluster::Define::ModuleOrClassCluster, __method__, includes, runtime_includes_block )
125
- extend_set = cluster_stack.class_extend_prepends_includes( ::ModuleCluster::Define::ModuleOrClassCluster, __method__, includes, runtime_includes_block )
126
- return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
127
- end
128
-
129
- #############################################
130
- # module_or_class_extend_prepends_extends #
131
- #############################################
132
-
133
- def module_or_class_extend_prepends_extends( *extends, & runtime_extends_block )
134
- include_set = cluster_stack.module_extend_prepends_extends( ::ModuleCluster::Define::ModuleOrClassCluster, __method__, extends, runtime_extends_block )
135
- extend_set = cluster_stack.class_extend_prepends_extends( ::ModuleCluster::Define::ModuleOrClassCluster, __method__, extends, runtime_extends_block )
136
- return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
137
- end
138
-
139
- ##########################################################
140
- # module_or_class_extend_prepends_includes_and_extends #
141
- ##########################################################
142
-
143
- def module_or_class_extend_prepends_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
144
- include_set = cluster_stack.module_extend_prepends_includes_and_extends( ::ModuleCluster::Define::ModuleOrClassCluster, __method__, includes_and_extends, runtime_includes_and_extends_block )
145
- extend_set = cluster_stack.class_extend_prepends_includes_and_extends( ::ModuleCluster::Define::ModuleOrClassCluster, __method__, includes_and_extends, runtime_includes_and_extends_block )
146
- return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
147
- end
148
-
149
- #####################################################
150
- # module_or_class_include_or_extend_also_includes #
151
- #####################################################
152
-
153
- def module_or_class_include_or_extend_also_includes( *includes, & runtime_includes_block )
154
- include_set = module_or_class_include_also_includes( *includes, & runtime_includes_block )
155
- extend_set = module_or_class_extend_also_includes( *includes, & runtime_includes_block )
156
- return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
157
- end
158
-
159
- ####################################################
160
- # module_or_class_include_or_extend_also_extends #
161
- ####################################################
162
-
163
- def module_or_class_include_or_extend_also_extends( *extends, & runtime_extends_block )
164
- include_set = module_or_class_include_also_extends( *extends, & runtime_extends_block )
165
- extend_set = module_or_class_extend_also_extends( *extends, & runtime_extends_block )
166
- return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
167
- end
168
-
169
- #################################################################
170
- # module_or_class_include_or_extend_also_includes_and_extends #
171
- #################################################################
172
-
173
- def module_or_class_include_or_extend_also_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
174
- include_set = module_or_class_include_prepends_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
175
- extend_set = module_or_class_extend_prepends_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
176
- return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
177
- end
178
-
179
- #########################################################
180
- # module_or_class_include_or_extend_prepends_includes #
181
- #########################################################
182
-
183
- def module_or_class_include_or_extend_prepends_includes( *includes, & runtime_includes_block )
184
- include_set = module_or_class_include_prepends_includes( *includes, & runtime_includes_block )
185
- extend_set = module_or_class_extend_prepends_includes( *includes, & runtime_includes_block )
186
- return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
187
- end
188
-
189
- ########################################################
190
- # module_or_class_include_or_extend_prepends_extends #
191
- ########################################################
192
-
193
- def module_or_class_include_or_extend_prepends_extends( *extends, & runtime_extends_block )
194
- include_set = module_or_class_include_prepends_extends( *extends, & runtime_extends_block )
195
- extend_set = module_or_class_extend_prepends_extends( *extends, & runtime_extends_block )
196
- return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
197
- end
198
-
199
- #####################################################################
200
- # module_or_class_include_or_extend_prepends_includes_and_extends #
201
- #####################################################################
202
-
203
- def module_or_class_include_or_extend_prepends_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
204
- include_set = module_or_class_include_prepends_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
205
- extend_set = module_or_class_extend_prepends_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
206
- return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
207
- end
208
-
209
- end