module-cluster 1.4.4 → 1.4.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. data/README.md +21 -0
  2. data/README.rdoc +21 -0
  3. data/lib/module-cluster/ModuleCluster/Define/Block/CascadingClass.rb +83 -0
  4. data/lib/module-cluster/ModuleCluster/Define/Block/CascadingClassOrModule.rb +70 -0
  5. data/lib/module-cluster/ModuleCluster/Define/Block/CascadingModule.rb +79 -0
  6. data/lib/module-cluster/ModuleCluster/Define/Block/CascadingModuleOrSubclass.rb +22 -0
  7. data/lib/module-cluster/ModuleCluster/Define/Block/Class.rb +15 -7
  8. data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrInstance.rb +15 -7
  9. data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModule.rb +15 -7
  10. data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModuleOrInstance.rb +15 -7
  11. data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModuleOrSubclass.rb +11 -3
  12. data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrSubclass.rb +10 -2
  13. data/lib/module-cluster/ModuleCluster/Define/Block/Instance.rb +15 -3
  14. data/lib/module-cluster/ModuleCluster/Define/Block/Module.rb +15 -7
  15. data/lib/module-cluster/ModuleCluster/Define/Block/ModuleOrInstance.rb +15 -7
  16. data/lib/module-cluster/ModuleCluster/Define/Block/ModuleOrSubclass.rb +10 -2
  17. data/lib/module-cluster/ModuleCluster/Define/Block/Subclass.rb +13 -2
  18. data/lib/module-cluster/ModuleCluster/Define/Block.rb +1 -1
  19. data/lib/module-cluster/ModuleCluster/Define/ClassCluster.rb +19 -19
  20. data/lib/module-cluster/ModuleCluster/Define/ClassOrInstanceCluster.rb +34 -34
  21. data/lib/module-cluster/ModuleCluster/Define/Cluster.rb +19 -19
  22. data/lib/module-cluster/ModuleCluster/Define/ClusterCascades.rb +19 -19
  23. data/lib/module-cluster/ModuleCluster/Define/ClusterCascadesToClass.rb +19 -19
  24. data/lib/module-cluster/ModuleCluster/Define/ClusterCascadesToModule.rb +19 -19
  25. data/lib/module-cluster/ModuleCluster/Define/Deprecated.rb +1 -1
  26. data/lib/module-cluster/ModuleCluster/Define/InstanceCluster.rb +3 -3
  27. data/lib/module-cluster/ModuleCluster/Define/ModuleCluster.rb +19 -19
  28. data/lib/module-cluster/ModuleCluster/Define/ModuleOrClassCluster.rb +43 -43
  29. data/lib/module-cluster/ModuleCluster/Define/ModuleOrInstanceCluster.rb +34 -34
  30. data/lib/module-cluster/ModuleCluster/Define/Status.rb +1 -1
  31. data/lib/module-cluster/ModuleCluster/Define.rb +1 -1
  32. data/lib/module-cluster/ModuleCluster/Suspend/Hooks.rb +1 -1
  33. data/lib/module-cluster/ModuleCluster/Suspend/WithoutHooks.rb +1 -1
  34. data/lib/module-cluster/ModuleCluster/Suspend.rb +1 -1
  35. data/lib/module-cluster/ModuleCluster.rb +1 -1
  36. data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures/ClusterStack.rb +3 -3
  37. data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures/PerformCascades.rb +85 -32
  38. data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures/Subclass.rb +6 -3
  39. data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures.rb +5 -5
  40. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Class.rb +9 -9
  41. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Inherited.rb +3 -3
  42. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Instance.rb +5 -5
  43. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Module.rb +9 -9
  44. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Set.rb +1 -0
  45. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block.rb +1 -1
  46. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Extends.rb +13 -13
  47. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Includes.rb +10 -10
  48. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/PrependsExtends.rb +13 -13
  49. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/PrependsIncludes.rb +10 -10
  50. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Set/MultiSetProxy.rb +1 -1
  51. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Status.rb +1 -1
  52. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Suspend.rb +1 -1
  53. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack.rb +1 -1
  54. data/lib/module-cluster/_private_/ModuleCluster/ExtendForCascade/Subclass.rb +1 -1
  55. data/lib/module-cluster/_private_/ModuleCluster/ExtendForCascade.rb +1 -1
  56. data/lib/module-cluster.rb +14 -2
  57. data/spec/ModuleCluster/Define/Block/CascadingClassOrModule_spec.rb +285 -0
  58. data/spec/ModuleCluster/Define/Block/CascadingClass_spec.rb +241 -0
  59. data/spec/ModuleCluster/Define/Block/CascadingModuleOrSubclass_spec.rb +56 -0
  60. data/spec/ModuleCluster/Define/Block/CascadingModule_spec.rb +278 -0
  61. data/spec/ModuleCluster/Define/Block/ClassOrInstance_spec.rb +13 -13
  62. data/spec/ModuleCluster/Define/Block/ClassOrModuleOrInstance_spec.rb +13 -13
  63. data/spec/ModuleCluster/Define/Block/ClassOrModuleOrSubclass_spec.rb +2 -3
  64. data/spec/ModuleCluster/Define/Block/ClassOrModule_spec.rb +13 -13
  65. data/spec/ModuleCluster/Define/Block/ClassOrSubclass_spec.rb +2 -2
  66. data/spec/ModuleCluster/Define/Block/Class_spec.rb +13 -13
  67. data/spec/ModuleCluster/Define/Block/Instance_spec.rb +5 -5
  68. data/spec/ModuleCluster/Define/Block/ModuleOrInstance_spec.rb +1 -1
  69. data/spec/ModuleCluster/Define/Block/ModuleOrSubclass_spec.rb +2 -4
  70. data/spec/ModuleCluster/Define/Block/Module_spec.rb +13 -13
  71. data/spec/ModuleCluster/Define/Block/Subclass_spec.rb +8 -8
  72. data/spec/ModuleCluster/Define/Block_spec.rb +9 -9
  73. data/spec/ModuleCluster/Define/ClassCluster_spec.rb +227 -227
  74. data/spec/ModuleCluster/Define/ClassOrInstanceCluster_spec.rb +197 -197
  75. data/spec/ModuleCluster/Define/ClusterCascadesToClass_spec.rb +228 -228
  76. data/spec/ModuleCluster/Define/ClusterCascadesToModule_spec.rb +232 -232
  77. data/spec/ModuleCluster/Define/ClusterCascades_spec.rb +224 -224
  78. data/spec/ModuleCluster/Define/Cluster_spec.rb +221 -221
  79. data/spec/ModuleCluster/Define/InstanceCluster_spec.rb +29 -29
  80. data/spec/ModuleCluster/Define/ModuleCluster_spec.rb +227 -227
  81. data/spec/ModuleCluster/Define/ModuleOrClassCluster_spec.rb +227 -227
  82. data/spec/ModuleCluster/Define/ModuleOrInstanceCluster_spec.rb +197 -197
  83. data/spec/ModuleCluster/Suspend/Hooks_spec.rb +120 -120
  84. data/spec/ModuleCluster/Suspend/WithoutHooks_spec.rb +120 -120
  85. data/spec/ModuleCluster_spec.rb +2 -2
  86. data/spec/_private_/ModuleCluster/CascadeFeatures/PerformCascades_spec.rb +192 -192
  87. data/spec/_private_/ModuleCluster/ClusterStack/Set/MultiSetProxy_spec.rb +129 -129
  88. data/spec/_private_/ModuleCluster/ClusterStack/Suspend_spec.rb +17 -17
  89. metadata +9 -1
@@ -1,5 +1,5 @@
1
1
 
2
- module ModuleCluster::Define::Block::ClassOrSubclass
2
+ module ::ModuleCluster::Define::Block::ClassOrSubclass
3
3
 
4
4
  include ::ModuleCluster::CascadeFeatures::ClusterStack
5
5
  include ::ModuleCluster::Define::Block::Class
@@ -9,6 +9,14 @@ module ModuleCluster::Define::Block::ClassOrSubclass
9
9
  extend ::ModuleCluster::ExtendForCascade::Subclass
10
10
  extend ::ModuleCluster::ExtendForCascade
11
11
 
12
+ ##########################
13
+ # self.should_cascade? #
14
+ ##########################
15
+
16
+ def self.should_cascade?( class_or_module )
17
+ return false
18
+ end
19
+
12
20
  ###############################
13
21
  # class_include_or_subclass #
14
22
  ###############################
@@ -16,7 +24,7 @@ module ModuleCluster::Define::Block::ClassOrSubclass
16
24
  def class_include_or_subclass( & runtime_block )
17
25
  class_set = class_include( & runtime_block )
18
26
  subclass_set = subclass( & runtime_block )
19
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( class_set, subclass_set )
27
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( class_set, subclass_set )
20
28
  end
21
29
 
22
30
  end
@@ -1,11 +1,19 @@
1
1
 
2
- module ModuleCluster::Define::Block::Instance
2
+ module ::ModuleCluster::Define::Block::Instance
3
3
 
4
4
  include ::ModuleCluster::CascadeFeatures::ClusterStack
5
5
  include ::ModuleCluster::Suspend::WithoutHooks
6
6
 
7
7
  extend ::ModuleCluster::ExtendForCascade
8
8
 
9
+ ##########################
10
+ # self.should_cascade? #
11
+ ##########################
12
+
13
+ def self.should_cascade?( class_or_module )
14
+ return false
15
+ end
16
+
9
17
  ############################
10
18
  # self.should_run_block? #
11
19
  ############################
@@ -19,7 +27,9 @@ module ModuleCluster::Define::Block::Instance
19
27
  #####################
20
28
 
21
29
  def instance_extend( & runtime_block )
22
- return cluster_stack.instance_extend( ModuleCluster::Define::Block::Instance, runtime_block )
30
+ return cluster_stack.instance_extend( ::ModuleCluster::Define::Block::Instance,
31
+ __method__,
32
+ runtime_block )
23
33
  end
24
34
 
25
35
  #############################
@@ -27,7 +37,9 @@ module ModuleCluster::Define::Block::Instance
27
37
  #############################
28
38
 
29
39
  def prepend_instance_extend( & runtime_block )
30
- return cluster_stack.prepend_instance_extend( ModuleCluster::Define::Block::Instance, runtime_block )
40
+ return cluster_stack.prepend_instance_extend( ::ModuleCluster::Define::Block::Instance,
41
+ __method__,
42
+ runtime_block )
31
43
  end
32
44
 
33
45
  end
@@ -1,11 +1,19 @@
1
1
 
2
- module ModuleCluster::Define::Block::Module
2
+ module ::ModuleCluster::Define::Block::Module
3
3
 
4
4
  include ::ModuleCluster::CascadeFeatures::ClusterStack
5
5
  include ::ModuleCluster::Suspend::WithoutHooks
6
6
 
7
7
  extend ::ModuleCluster::ExtendForCascade
8
8
 
9
+ ##########################
10
+ # self.should_cascade? #
11
+ ##########################
12
+
13
+ def self.should_cascade?( class_or_module )
14
+ return false
15
+ end
16
+
9
17
  ############################
10
18
  # self.should_run_block? #
11
19
  ############################
@@ -19,7 +27,7 @@ module ModuleCluster::Define::Block::Module
19
27
  ####################
20
28
 
21
29
  def module_include( & runtime_block )
22
- return cluster_stack.module_include( ModuleCluster::Define::Block::Module, runtime_block )
30
+ return cluster_stack.module_include( ::ModuleCluster::Define::Block::Module, __method__, runtime_block )
23
31
  end
24
32
 
25
33
  ###################
@@ -27,7 +35,7 @@ module ModuleCluster::Define::Block::Module
27
35
  ###################
28
36
 
29
37
  def module_extend( & runtime_block )
30
- return cluster_stack.module_extend( ModuleCluster::Define::Block::Module, runtime_block )
38
+ return cluster_stack.module_extend( ::ModuleCluster::Define::Block::Module, __method__, runtime_block )
31
39
  end
32
40
 
33
41
  ##############################
@@ -37,7 +45,7 @@ module ModuleCluster::Define::Block::Module
37
45
  def module_include_or_extend( & runtime_block )
38
46
  include_set = module_include( & runtime_block )
39
47
  extend_set = module_extend( & runtime_block )
40
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
48
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
41
49
  end
42
50
 
43
51
  ############################
@@ -45,7 +53,7 @@ module ModuleCluster::Define::Block::Module
45
53
  ############################
46
54
 
47
55
  def prepend_module_include( & runtime_block )
48
- return cluster_stack.prepend_module_include( ModuleCluster::Define::Block::Module, runtime_block )
56
+ return cluster_stack.prepend_module_include( ::ModuleCluster::Define::Block::Module, __method__, runtime_block )
49
57
  end
50
58
 
51
59
  ###########################
@@ -53,7 +61,7 @@ module ModuleCluster::Define::Block::Module
53
61
  ###########################
54
62
 
55
63
  def prepend_module_extend( & runtime_block )
56
- return cluster_stack.prepend_module_extend( ModuleCluster::Define::Block::Module, runtime_block )
64
+ return cluster_stack.prepend_module_extend( ::ModuleCluster::Define::Block::Module, __method__, runtime_block )
57
65
  end
58
66
 
59
67
  ######################################
@@ -63,7 +71,7 @@ module ModuleCluster::Define::Block::Module
63
71
  def prepend_module_include_or_extend( & runtime_block )
64
72
  include_set = prepend_module_include( & runtime_block )
65
73
  extend_set = prepend_module_extend( & runtime_block )
66
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
74
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
67
75
  end
68
76
 
69
77
  end
@@ -1,5 +1,5 @@
1
1
 
2
- module ModuleCluster::Define::Block::ModuleOrInstance
2
+ module ::ModuleCluster::Define::Block::ModuleOrInstance
3
3
 
4
4
  include ::ModuleCluster::Define::Block::Module
5
5
  include ::ModuleCluster::Define::Block::Instance
@@ -7,6 +7,14 @@ module ModuleCluster::Define::Block::ModuleOrInstance
7
7
 
8
8
  extend ::ModuleCluster::ExtendForCascade
9
9
 
10
+ ##########################
11
+ # self.should_cascade? #
12
+ ##########################
13
+
14
+ def self.should_cascade?( class_or_module )
15
+ return false
16
+ end
17
+
10
18
  ###############################
11
19
  # module_or_instance_extend #
12
20
  ###############################
@@ -14,7 +22,7 @@ module ModuleCluster::Define::Block::ModuleOrInstance
14
22
  def module_or_instance_extend( & runtime_block )
15
23
  module_set = module_extend( & runtime_block )
16
24
  instance_set = instance_extend( & runtime_block )
17
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( module_set, instance_set )
25
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( module_set, instance_set )
18
26
  end
19
27
 
20
28
  #######################################
@@ -24,7 +32,7 @@ module ModuleCluster::Define::Block::ModuleOrInstance
24
32
  def module_include_or_instance_extend( & runtime_block )
25
33
  module_set = module_include( & runtime_block )
26
34
  instance_set = instance_extend( & runtime_block )
27
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( module_set, instance_set )
35
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( module_set, instance_set )
28
36
  end
29
37
 
30
38
  #################################################
@@ -34,7 +42,7 @@ module ModuleCluster::Define::Block::ModuleOrInstance
34
42
  def module_include_or_extend_or_instance_extend( & runtime_block )
35
43
  module_set = module_include_or_extend( & runtime_block )
36
44
  instance_set = instance_extend( & runtime_block )
37
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( module_set, instance_set )
45
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( module_set, instance_set )
38
46
  end
39
47
 
40
48
  #######################################
@@ -44,7 +52,7 @@ module ModuleCluster::Define::Block::ModuleOrInstance
44
52
  def prepend_module_or_instance_extend( & runtime_block )
45
53
  module_set = prepend_module_extend( & runtime_block )
46
54
  instance_set = prepend_instance_extend( & runtime_block )
47
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( module_set, instance_set )
55
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( module_set, instance_set )
48
56
  end
49
57
 
50
58
  ###############################################
@@ -54,7 +62,7 @@ module ModuleCluster::Define::Block::ModuleOrInstance
54
62
  def prepend_module_include_or_instance_extend( & runtime_block )
55
63
  module_set = prepend_module_include( & runtime_block )
56
64
  instance_set = prepend_instance_extend( & runtime_block )
57
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( module_set, instance_set )
65
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( module_set, instance_set )
58
66
  end
59
67
 
60
68
  #########################################################
@@ -64,7 +72,7 @@ module ModuleCluster::Define::Block::ModuleOrInstance
64
72
  def prepend_module_include_or_extend_or_instance_extend( & runtime_block )
65
73
  module_set = prepend_module_include_or_extend( & runtime_block )
66
74
  instance_set = prepend_instance_extend( & runtime_block )
67
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( module_set, instance_set )
75
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( module_set, instance_set )
68
76
  end
69
77
 
70
78
  end
@@ -1,5 +1,5 @@
1
1
 
2
- module ModuleCluster::Define::Block::ModuleOrSubclass
2
+ module ::ModuleCluster::Define::Block::ModuleOrSubclass
3
3
 
4
4
  include ::ModuleCluster::CascadeFeatures::ClusterStack
5
5
  include ::ModuleCluster::Define::Block::Module
@@ -9,6 +9,14 @@ module ModuleCluster::Define::Block::ModuleOrSubclass
9
9
  extend ::ModuleCluster::ExtendForCascade::Subclass
10
10
  extend ::ModuleCluster::ExtendForCascade
11
11
 
12
+ ##########################
13
+ # self.should_cascade? #
14
+ ##########################
15
+
16
+ def self.should_cascade?( class_or_module )
17
+ return false
18
+ end
19
+
12
20
  ################################
13
21
  # module_include_or_subclass #
14
22
  ################################
@@ -16,7 +24,7 @@ module ModuleCluster::Define::Block::ModuleOrSubclass
16
24
  def module_include_or_subclass( & runtime_block )
17
25
  module_set = module_include( & runtime_block )
18
26
  subclass_set = subclass( & runtime_block )
19
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( module_set, subclass_set )
27
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( module_set, subclass_set )
20
28
  end
21
29
 
22
30
  end
@@ -1,5 +1,5 @@
1
1
 
2
- module ModuleCluster::Define::Block::Subclass
2
+ module ::ModuleCluster::Define::Block::Subclass
3
3
 
4
4
  include ::ModuleCluster::CascadeFeatures::ClusterStack
5
5
  include ::ModuleCluster::Suspend::WithoutHooks
@@ -15,6 +15,15 @@ module ModuleCluster::Define::Block::Subclass
15
15
 
16
16
  extend ::ModuleCluster::ExtendForCascade::Subclass
17
17
 
18
+ ##########################
19
+ # self.should_cascade? #
20
+ ##########################
21
+
22
+ def self.should_cascade?( class_or_module )
23
+ # cascades anyway due to nature of subclassing
24
+ return true
25
+ end
26
+
18
27
  ############################
19
28
  # self.should_run_block? #
20
29
  ############################
@@ -46,7 +55,9 @@ module ModuleCluster::Define::Block::Subclass
46
55
  ##############
47
56
 
48
57
  def subclass( & runtime_block )
49
- return cluster_stack.subclass( ModuleCluster::Define::Block::Subclass, runtime_block )
58
+ return cluster_stack.subclass( ::ModuleCluster::Define::Block::Subclass,
59
+ __method__,
60
+ runtime_block )
50
61
  end
51
62
 
52
63
  end
@@ -1,5 +1,5 @@
1
1
 
2
- module ModuleCluster::Define::Block
2
+ module ::ModuleCluster::Define::Block
3
3
 
4
4
  include ClassOrModule
5
5
  include ClassOrInstance
@@ -1,5 +1,5 @@
1
1
 
2
- module ModuleCluster::Define::ClassCluster
2
+ module ::ModuleCluster::Define::ClassCluster
3
3
 
4
4
  include ::ModuleCluster::CascadeFeatures::ClusterStack
5
5
  include ::ModuleCluster::Suspend::WithoutHooks
@@ -31,7 +31,7 @@ module ModuleCluster::Define::ClassCluster
31
31
  #################################
32
32
 
33
33
  def class_include_also_includes( *includes, & runtime_includes_block )
34
- return cluster_stack.class_include_includes( ModuleCluster::Define::Cluster, __method__, includes, runtime_includes_block )
34
+ return cluster_stack.class_include_includes( ::ModuleCluster::Define::Cluster, __method__, includes, runtime_includes_block )
35
35
  end
36
36
 
37
37
  ################################
@@ -39,7 +39,7 @@ module ModuleCluster::Define::ClassCluster
39
39
  ################################
40
40
 
41
41
  def class_include_also_extends( *extends, & runtime_extends_block )
42
- return cluster_stack.class_include_extends( ModuleCluster::Define::Cluster, __method__, extends, runtime_extends_block )
42
+ return cluster_stack.class_include_extends( ::ModuleCluster::Define::Cluster, __method__, extends, runtime_extends_block )
43
43
  end
44
44
 
45
45
  #############################################
@@ -49,7 +49,7 @@ module ModuleCluster::Define::ClassCluster
49
49
  def class_include_also_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
50
50
  include_set = class_include_also_includes( *includes_and_extends, & runtime_includes_and_extends_block )
51
51
  extend_set = class_include_also_extends( *includes_and_extends, & runtime_includes_and_extends_block )
52
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
52
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
53
53
  end
54
54
 
55
55
  ################################
@@ -57,7 +57,7 @@ module ModuleCluster::Define::ClassCluster
57
57
  ################################
58
58
 
59
59
  def class_extend_also_includes( *includes, & runtime_includes_block )
60
- return cluster_stack.class_extend_includes( ModuleCluster::Define::Cluster, __method__, includes, runtime_includes_block )
60
+ return cluster_stack.class_extend_includes( ::ModuleCluster::Define::Cluster, __method__, includes, runtime_includes_block )
61
61
  end
62
62
 
63
63
  ###############################
@@ -65,7 +65,7 @@ module ModuleCluster::Define::ClassCluster
65
65
  ###############################
66
66
 
67
67
  def class_extend_also_extends( *extends, & runtime_extends_block )
68
- return cluster_stack.class_extend_extends( ModuleCluster::Define::Cluster, __method__, extends, runtime_extends_block )
68
+ return cluster_stack.class_extend_extends( ::ModuleCluster::Define::Cluster, __method__, extends, runtime_extends_block )
69
69
  end
70
70
 
71
71
  ############################################
@@ -75,7 +75,7 @@ module ModuleCluster::Define::ClassCluster
75
75
  def class_extend_also_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
76
76
  include_set = class_extend_also_includes( *includes_and_extends, & runtime_includes_and_extends_block )
77
77
  extend_set = class_extend_also_extends( *includes_and_extends, & runtime_includes_and_extends_block )
78
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
78
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
79
79
  end
80
80
 
81
81
  #####################################
@@ -83,7 +83,7 @@ module ModuleCluster::Define::ClassCluster
83
83
  #####################################
84
84
 
85
85
  def class_include_prepends_includes( *includes, & runtime_includes_block )
86
- return cluster_stack.class_include_prepends_includes( ModuleCluster::Define::Cluster, __method__, includes, runtime_includes_block )
86
+ return cluster_stack.class_include_prepends_includes( ::ModuleCluster::Define::Cluster, __method__, includes, runtime_includes_block )
87
87
  end
88
88
 
89
89
  ####################################
@@ -91,7 +91,7 @@ module ModuleCluster::Define::ClassCluster
91
91
  ####################################
92
92
 
93
93
  def class_include_prepends_extends( *extends, & runtime_extends_block )
94
- return cluster_stack.class_include_prepends_extends( ModuleCluster::Define::Cluster, __method__, extends, runtime_extends_block )
94
+ return cluster_stack.class_include_prepends_extends( ::ModuleCluster::Define::Cluster, __method__, extends, runtime_extends_block )
95
95
  end
96
96
 
97
97
  #################################################
@@ -101,7 +101,7 @@ module ModuleCluster::Define::ClassCluster
101
101
  def class_include_prepends_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
102
102
  include_set = class_include_prepends_includes( *includes_and_extends, & runtime_includes_and_extends_block )
103
103
  extend_set = class_include_prepends_extends( *includes_and_extends, & runtime_includes_and_extends_block )
104
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
104
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
105
105
  end
106
106
 
107
107
  ####################################
@@ -109,7 +109,7 @@ module ModuleCluster::Define::ClassCluster
109
109
  ####################################
110
110
 
111
111
  def class_extend_prepends_includes( *includes, & runtime_includes_block )
112
- return cluster_stack.class_extend_prepends_includes( ModuleCluster::Define::Cluster, __method__, includes, runtime_includes_block )
112
+ return cluster_stack.class_extend_prepends_includes( ::ModuleCluster::Define::Cluster, __method__, includes, runtime_includes_block )
113
113
  end
114
114
 
115
115
  ###################################
@@ -117,7 +117,7 @@ module ModuleCluster::Define::ClassCluster
117
117
  ###################################
118
118
 
119
119
  def class_extend_prepends_extends( *extends, & runtime_extends_block )
120
- return cluster_stack.class_extend_prepends_extends( ModuleCluster::Define::Cluster, __method__, extends, runtime_extends_block )
120
+ return cluster_stack.class_extend_prepends_extends( ::ModuleCluster::Define::Cluster, __method__, extends, runtime_extends_block )
121
121
  end
122
122
 
123
123
  ################################################
@@ -127,7 +127,7 @@ module ModuleCluster::Define::ClassCluster
127
127
  def class_extend_prepends_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
128
128
  include_set = class_extend_prepends_includes( *includes_and_extends, & runtime_includes_and_extends_block )
129
129
  extend_set = class_extend_prepends_extends( *includes_and_extends, & runtime_includes_and_extends_block )
130
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
130
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
131
131
  end
132
132
 
133
133
  ###########################################
@@ -137,7 +137,7 @@ module ModuleCluster::Define::ClassCluster
137
137
  def class_include_or_extend_also_includes( *includes, & runtime_includes_block )
138
138
  include_set = class_include_also_includes( *includes, & runtime_includes_block )
139
139
  extend_set = class_extend_also_includes( *includes, & runtime_includes_block )
140
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
140
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
141
141
  end
142
142
 
143
143
  ##########################################
@@ -147,7 +147,7 @@ module ModuleCluster::Define::ClassCluster
147
147
  def class_include_or_extend_also_extends( *extends, & runtime_extends_block )
148
148
  include_set = class_include_also_extends( *extends, & runtime_extends_block )
149
149
  extend_set = class_extend_also_extends( *extends, & runtime_extends_block )
150
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
150
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
151
151
  end
152
152
 
153
153
  #######################################################
@@ -157,7 +157,7 @@ module ModuleCluster::Define::ClassCluster
157
157
  def class_include_or_extend_also_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
158
158
  include_set = class_include_prepends_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
159
159
  extend_set = class_extend_prepends_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
160
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
160
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
161
161
  end
162
162
 
163
163
  ###############################################
@@ -167,7 +167,7 @@ module ModuleCluster::Define::ClassCluster
167
167
  def class_include_or_extend_prepends_includes( *includes, & runtime_includes_block )
168
168
  include_set = class_include_prepends_includes( *includes, & runtime_includes_block )
169
169
  extend_set = class_extend_prepends_includes( *includes, & runtime_includes_block )
170
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
170
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
171
171
  end
172
172
 
173
173
  ##############################################
@@ -177,7 +177,7 @@ module ModuleCluster::Define::ClassCluster
177
177
  def class_include_or_extend_prepends_extends( *extends, & runtime_extends_block )
178
178
  include_set = class_include_prepends_extends( *extends, & runtime_extends_block )
179
179
  extend_set = class_extend_prepends_extends( *extends, & runtime_extends_block )
180
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
180
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
181
181
  end
182
182
 
183
183
  ###########################################################
@@ -187,7 +187,7 @@ module ModuleCluster::Define::ClassCluster
187
187
  def class_include_or_extend_prepends_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
188
188
  include_set = class_include_prepends_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
189
189
  extend_set = class_extend_prepends_includes_and_extends( *includes_and_extends, & runtime_includes_and_extends_block )
190
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
190
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
191
191
  end
192
192
 
193
193
  end
@@ -1,5 +1,5 @@
1
1
 
2
- module ModuleCluster::Define::ClassOrInstanceCluster
2
+ module ::ModuleCluster::Define::ClassOrInstanceCluster
3
3
 
4
4
  include ::ModuleCluster::CascadeFeatures::ClusterStack
5
5
  include ::ModuleCluster::Suspend::WithoutHooks
@@ -27,10 +27,10 @@ module ModuleCluster::Define::ClassOrInstanceCluster
27
27
  #########################################################################
28
28
 
29
29
  def class_include_or_extend_or_instance_extend_also_includes_or_extends( *includes_or_extends, & runtime_includes_or_extends_block )
30
- include_set = cluster_stack.class_include_includes( ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
31
- extend_set = cluster_stack.class_extend_extends( ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
32
- extend_set_two = cluster_stack.instance_extend_extends( ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
33
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set, extend_set_two )
30
+ include_set = cluster_stack.class_include_includes( ::ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
31
+ extend_set = cluster_stack.class_extend_extends( ::ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
32
+ extend_set_two = cluster_stack.instance_extend_extends( ::ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
33
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set, extend_set_two )
34
34
  end
35
35
 
36
36
  #############################################################
@@ -38,10 +38,10 @@ module ModuleCluster::Define::ClassOrInstanceCluster
38
38
  #############################################################
39
39
 
40
40
  def class_include_or_extend_or_instance_extend_also_extends( *includes_or_extends, & runtime_includes_or_extends_block )
41
- include_set = cluster_stack.class_include_extends( ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
42
- extend_set = cluster_stack.class_extend_extends( ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
43
- extend_set_two = cluster_stack.instance_extend_extends( ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
44
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set, extend_set_two )
41
+ include_set = cluster_stack.class_include_extends( ::ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
42
+ extend_set = cluster_stack.class_extend_extends( ::ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
43
+ extend_set_two = cluster_stack.instance_extend_extends( ::ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
44
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set, extend_set_two )
45
45
  end
46
46
 
47
47
  ###############################################################
@@ -49,9 +49,9 @@ module ModuleCluster::Define::ClassOrInstanceCluster
49
49
  ###############################################################
50
50
 
51
51
  def class_include_or_instance_extend_also_includes_or_extends( *includes_or_extends, & runtime_includes_or_extends_block )
52
- include_set = cluster_stack.class_include_includes( ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
53
- extend_set = cluster_stack.instance_extend_extends( ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
54
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
52
+ include_set = cluster_stack.class_include_includes( ::ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
53
+ extend_set = cluster_stack.instance_extend_extends( ::ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
54
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
55
55
  end
56
56
 
57
57
  ###################################################
@@ -59,9 +59,9 @@ module ModuleCluster::Define::ClassOrInstanceCluster
59
59
  ###################################################
60
60
 
61
61
  def class_include_or_instance_extend_also_extends( *extends, & runtime_extends_block )
62
- include_set = cluster_stack.class_include_extends( ModuleCluster::Define::ClassOrInstanceCluster, __method__, extends, runtime_extends_block )
63
- extend_set = cluster_stack.instance_extend_extends( ModuleCluster::Define::ClassOrInstanceCluster, __method__, extends, runtime_extends_block )
64
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
62
+ include_set = cluster_stack.class_include_extends( ::ModuleCluster::Define::ClassOrInstanceCluster, __method__, extends, runtime_extends_block )
63
+ extend_set = cluster_stack.instance_extend_extends( ::ModuleCluster::Define::ClassOrInstanceCluster, __method__, extends, runtime_extends_block )
64
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
65
65
  end
66
66
 
67
67
  ###########################################
@@ -69,9 +69,9 @@ module ModuleCluster::Define::ClassOrInstanceCluster
69
69
  ###########################################
70
70
 
71
71
  def class_or_instance_extend_also_extends( *extends, & runtime_extends_block )
72
- include_set = cluster_stack.class_extend_extends( ModuleCluster::Define::ClassOrInstanceCluster, __method__, extends, runtime_extends_block )
73
- extend_set = cluster_stack.instance_extend_extends( ModuleCluster::Define::ClassOrInstanceCluster, __method__, extends, runtime_extends_block )
74
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
72
+ include_set = cluster_stack.class_extend_extends( ::ModuleCluster::Define::ClassOrInstanceCluster, __method__, extends, runtime_extends_block )
73
+ extend_set = cluster_stack.instance_extend_extends( ::ModuleCluster::Define::ClassOrInstanceCluster, __method__, extends, runtime_extends_block )
74
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
75
75
  end
76
76
 
77
77
  #############################################################################
@@ -79,10 +79,10 @@ module ModuleCluster::Define::ClassOrInstanceCluster
79
79
  #############################################################################
80
80
 
81
81
  def class_include_or_extend_or_instance_extend_prepends_includes_or_extends( *includes_or_extends, & runtime_includes_or_extends_block )
82
- include_set = cluster_stack.class_include_prepends_includes( ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
83
- extend_set = cluster_stack.class_extend_prepends_extends( ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
84
- extend_set_two = cluster_stack.instance_extend_prepends_extends( ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
85
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set, extend_set_two )
82
+ include_set = cluster_stack.class_include_prepends_includes( ::ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
83
+ extend_set = cluster_stack.class_extend_prepends_extends( ::ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
84
+ extend_set_two = cluster_stack.instance_extend_prepends_extends( ::ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
85
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set, extend_set_two )
86
86
  end
87
87
 
88
88
  ###################################################################
@@ -90,9 +90,9 @@ module ModuleCluster::Define::ClassOrInstanceCluster
90
90
  ###################################################################
91
91
 
92
92
  def class_include_or_instance_extend_prepends_includes_or_extends( *includes_or_extends, & runtime_includes_or_extends_block )
93
- include_set = cluster_stack.class_include_prepends_includes( ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
94
- extend_set = cluster_stack.instance_extend_prepends_extends( ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
95
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
93
+ include_set = cluster_stack.class_include_prepends_includes( ::ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
94
+ extend_set = cluster_stack.instance_extend_prepends_extends( ::ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
95
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
96
96
  end
97
97
 
98
98
  #################################################################
@@ -100,9 +100,9 @@ module ModuleCluster::Define::ClassOrInstanceCluster
100
100
  #################################################################
101
101
 
102
102
  def class_include_or_extend_or_instance_extend_prepends_extends( *includes_or_extends, & runtime_includes_or_extends_block )
103
- include_set = cluster_stack.class_include_prepends_includes( ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
104
- extend_set = cluster_stack.instance_extend_prepends_extends( ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
105
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
103
+ include_set = cluster_stack.class_include_prepends_includes( ::ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
104
+ extend_set = cluster_stack.instance_extend_prepends_extends( ::ModuleCluster::Define::ClassOrInstanceCluster, __method__, includes_or_extends, runtime_includes_or_extends_block )
105
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
106
106
  end
107
107
 
108
108
  #######################################################
@@ -110,9 +110,9 @@ module ModuleCluster::Define::ClassOrInstanceCluster
110
110
  #######################################################
111
111
 
112
112
  def class_include_or_instance_extend_prepends_extends( *extends, & runtime_extends_block )
113
- include_set = cluster_stack.class_include_prepends_extends( ModuleCluster::Define::ClassOrInstanceCluster, __method__, extends, runtime_extends_block )
114
- extend_set = cluster_stack.instance_extend_prepends_extends( ModuleCluster::Define::ClassOrInstanceCluster, __method__, extends, runtime_extends_block )
115
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
113
+ include_set = cluster_stack.class_include_prepends_extends( ::ModuleCluster::Define::ClassOrInstanceCluster, __method__, extends, runtime_extends_block )
114
+ extend_set = cluster_stack.instance_extend_prepends_extends( ::ModuleCluster::Define::ClassOrInstanceCluster, __method__, extends, runtime_extends_block )
115
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
116
116
  end
117
117
 
118
118
  ###############################################
@@ -120,9 +120,9 @@ module ModuleCluster::Define::ClassOrInstanceCluster
120
120
  ###############################################
121
121
 
122
122
  def class_or_instance_extend_prepends_extends( *extends, & runtime_extends_block )
123
- include_set = cluster_stack.class_extend_prepends_extends( ModuleCluster::Define::ClassOrInstanceCluster, __method__, extends, runtime_extends_block )
124
- extend_set = cluster_stack.instance_extend_prepends_extends( ModuleCluster::Define::ClassOrInstanceCluster, __method__, extends, runtime_extends_block )
125
- return ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
123
+ include_set = cluster_stack.class_extend_prepends_extends( ::ModuleCluster::Define::ClassOrInstanceCluster, __method__, extends, runtime_extends_block )
124
+ extend_set = cluster_stack.instance_extend_prepends_extends( ::ModuleCluster::Define::ClassOrInstanceCluster, __method__, extends, runtime_extends_block )
125
+ return ::ModuleCluster::ClusterStack::Set::MultiSetProxy.new( include_set, extend_set )
126
126
  end
127
127
 
128
128
  end