module-cluster 1.4.3 → 1.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -4
- data/README.rdoc +4 -4
- data/lib/module-cluster.rb +19 -10
- data/lib/module-cluster/ModuleCluster.rb +1 -1
- data/lib/module-cluster/ModuleCluster/Define/Block/Class.rb +3 -3
- data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrInstance.rb +4 -4
- data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModule.rb +4 -4
- data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModuleOrInstance.rb +4 -4
- data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModuleOrSubclass.rb +29 -0
- data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrSubclass.rb +22 -0
- data/lib/module-cluster/ModuleCluster/Define/Block/Instance.rb +3 -3
- data/lib/module-cluster/ModuleCluster/Define/Block/Module.rb +3 -3
- data/lib/module-cluster/ModuleCluster/Define/Block/ModuleOrInstance.rb +4 -4
- data/lib/module-cluster/ModuleCluster/Define/Block/ModuleOrSubclass.rb +22 -0
- data/lib/module-cluster/ModuleCluster/Define/Block/Subclass.rb +32 -5
- data/lib/module-cluster/ModuleCluster/Define/ClassCluster.rb +3 -3
- data/lib/module-cluster/ModuleCluster/Define/ClassOrInstanceCluster.rb +3 -3
- data/lib/module-cluster/ModuleCluster/Define/Cluster.rb +3 -3
- data/lib/module-cluster/ModuleCluster/Define/ClusterCascades.rb +3 -3
- data/lib/module-cluster/ModuleCluster/Define/ClusterCascadesToClass.rb +3 -3
- data/lib/module-cluster/ModuleCluster/Define/ClusterCascadesToModule.rb +3 -3
- data/lib/module-cluster/ModuleCluster/Define/InstanceCluster.rb +3 -3
- data/lib/module-cluster/ModuleCluster/Define/ModuleCluster.rb +3 -3
- data/lib/module-cluster/ModuleCluster/Define/ModuleOrClassCluster.rb +3 -3
- data/lib/module-cluster/ModuleCluster/Define/ModuleOrInstanceCluster.rb +3 -3
- data/lib/module-cluster/ModuleCluster/Define/Status.rb +4 -4
- data/lib/module-cluster/ModuleCluster/Suspend/WithoutHooks.rb +1 -1
- data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures.rb +1 -1
- data/lib/module-cluster/_private_/ModuleCluster/ExtendForCascade.rb +1 -1
- data/lib/module-cluster/_private_/ModuleCluster/ExtendForCascade/Subclass.rb +55 -8
- data/spec/ModuleCluster/Define/Block/ClassOrInstance_spec.rb +36 -36
- data/spec/ModuleCluster/Define/Block/ClassOrModuleOrInstance_spec.rb +36 -36
- data/spec/ModuleCluster/Define/Block/ClassOrModuleOrSubclass_spec.rb +55 -0
- data/spec/ModuleCluster/Define/Block/ClassOrModule_spec.rb +36 -36
- data/spec/ModuleCluster/Define/Block/ClassOrSubclass_spec.rb +54 -0
- data/spec/ModuleCluster/Define/Block/Class_spec.rb +36 -36
- data/spec/ModuleCluster/Define/Block/Instance_spec.rb +12 -12
- data/spec/ModuleCluster/Define/Block/ModuleOrSubclass_spec.rb +53 -0
- data/spec/ModuleCluster/Define/Block/Module_spec.rb +36 -36
- data/spec/ModuleCluster/Define/Block/Subclass_spec.rb +39 -9
- data/spec/ModuleCluster/Define/ClassCluster_spec.rb +71 -71
- data/spec/ModuleCluster/Define/ClassOrInstanceCluster_spec.rb +60 -60
- data/spec/ModuleCluster/Define/ClusterCascadesToClass_spec.rb +72 -72
- data/spec/ModuleCluster/Define/ClusterCascadesToModule_spec.rb +72 -72
- data/spec/ModuleCluster/Define/ClusterCascades_spec.rb +68 -68
- data/spec/ModuleCluster/Define/Cluster_spec.rb +71 -71
- data/spec/ModuleCluster/Define/InstanceCluster_spec.rb +8 -8
- data/spec/ModuleCluster/Define/ModuleCluster_spec.rb +71 -71
- data/spec/ModuleCluster/Define/ModuleOrClassCluster_spec.rb +71 -71
- data/spec/ModuleCluster/Define/ModuleOrInstanceCluster_spec.rb +60 -60
- data/spec/ModuleCluster/Suspend/Hooks_spec.rb +14 -14
- data/spec/ModuleCluster/Suspend/WithoutHooks_spec.rb +14 -14
- data/spec/_private_/ModuleCluster/CascadeFeatures/PerformCascades_spec.rb +6 -6
- data/spec/_private_/ModuleCluster/ClusterStack/Suspend_spec.rb +8 -8
- metadata +33 -29
@@ -29,7 +29,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
29
29
|
|
30
30
|
it 'can include a module when this one is included in a module or extend an instance when this one is used to extend an instance' do
|
31
31
|
module ModuleCluster::Define::ModuleOrInstanceCluster::Mock01
|
32
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster
|
32
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster
|
33
33
|
module Module1
|
34
34
|
end
|
35
35
|
module Module2
|
@@ -38,7 +38,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
38
38
|
respond_to?( :included ).should == true
|
39
39
|
respond_to?( :extended ).should == true
|
40
40
|
module ModuleProof
|
41
|
-
include ModuleCluster::Define::ModuleOrInstanceCluster::Mock01
|
41
|
+
include ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock01
|
42
42
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock01::Module1 ).should == true
|
43
43
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock01::Module2 ).should == true
|
44
44
|
eigenclass = class << self ; self ; end
|
@@ -46,7 +46,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
46
46
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock01::Module2 ).should == false
|
47
47
|
end
|
48
48
|
module ModuleProof2
|
49
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock01
|
49
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock01
|
50
50
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock01::Module1 ).should == false
|
51
51
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock01::Module2 ).should == false
|
52
52
|
eigenclass = class << self ; self ; end
|
@@ -54,7 +54,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
54
54
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock01::Module2 ).should == true
|
55
55
|
end
|
56
56
|
class ClassProof
|
57
|
-
include ModuleCluster::Define::ModuleOrInstanceCluster::Mock01
|
57
|
+
include ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock01
|
58
58
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock01::Module1 ).should == false
|
59
59
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock01::Module2 ).should == false
|
60
60
|
eigenclass = class << self ; self ; end
|
@@ -62,7 +62,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
62
62
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock01::Module2 ).should == false
|
63
63
|
end
|
64
64
|
class ClassProof2
|
65
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock01
|
65
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock01
|
66
66
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock01::Module1 ).should == false
|
67
67
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock01::Module2 ).should == false
|
68
68
|
eigenclass = class << self ; self ; end
|
@@ -70,7 +70,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
70
70
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock01::Module2 ).should == false
|
71
71
|
end
|
72
72
|
Object.new.instance_eval do
|
73
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock01
|
73
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock01
|
74
74
|
eigenclass = class << self ; self ; end
|
75
75
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock01::Module1 ).should == true
|
76
76
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock01::Module2 ).should == true
|
@@ -84,7 +84,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
84
84
|
|
85
85
|
it 'can include a module when this one is included in a module or extend with another module when this one is used to extend a module or extend an instance when this one is used to extend an instance' do
|
86
86
|
module ModuleCluster::Define::ModuleOrInstanceCluster::Mock02
|
87
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster
|
87
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster
|
88
88
|
module Module1
|
89
89
|
end
|
90
90
|
module Module2
|
@@ -93,7 +93,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
93
93
|
respond_to?( :included ).should == true
|
94
94
|
respond_to?( :extended ).should == true
|
95
95
|
module ModuleProof
|
96
|
-
include ModuleCluster::Define::ModuleOrInstanceCluster::Mock02
|
96
|
+
include ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock02
|
97
97
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock02::Module1 ).should == false
|
98
98
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock02::Module2 ).should == false
|
99
99
|
eigenclass = class << self ; self ; end
|
@@ -101,7 +101,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
101
101
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock02::Module2 ).should == true
|
102
102
|
end
|
103
103
|
module ModuleProof2
|
104
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock02
|
104
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock02
|
105
105
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock02::Module1 ).should == false
|
106
106
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock02::Module2 ).should == false
|
107
107
|
eigenclass = class << self ; self ; end
|
@@ -109,7 +109,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
109
109
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock02::Module2 ).should == true
|
110
110
|
end
|
111
111
|
class ClassProof
|
112
|
-
include ModuleCluster::Define::ModuleOrInstanceCluster::Mock02
|
112
|
+
include ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock02
|
113
113
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock02::Module1 ).should == false
|
114
114
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock02::Module2 ).should == false
|
115
115
|
eigenclass = class << self ; self ; end
|
@@ -117,7 +117,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
117
117
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock02::Module2 ).should == false
|
118
118
|
end
|
119
119
|
class ClassProof2
|
120
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock02
|
120
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock02
|
121
121
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock02::Module1 ).should == false
|
122
122
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock02::Module2 ).should == false
|
123
123
|
eigenclass = class << self ; self ; end
|
@@ -125,7 +125,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
125
125
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock02::Module2 ).should == false
|
126
126
|
end
|
127
127
|
Object.new.instance_eval do
|
128
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock02
|
128
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock02
|
129
129
|
eigenclass = class << self ; self ; end
|
130
130
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock02::Module1 ).should == true
|
131
131
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock02::Module2 ).should == true
|
@@ -139,7 +139,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
139
139
|
|
140
140
|
it 'can include a module when this one is included in a module or extend with another module when this one is used to extend an instance' do
|
141
141
|
module ModuleCluster::Define::ModuleOrInstanceCluster::Mock03
|
142
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster
|
142
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster
|
143
143
|
module Module1
|
144
144
|
end
|
145
145
|
module Module2
|
@@ -148,7 +148,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
148
148
|
respond_to?( :included ).should == true
|
149
149
|
respond_to?( :extended ).should == true
|
150
150
|
module ModuleProof
|
151
|
-
include ModuleCluster::Define::ModuleOrInstanceCluster::Mock03
|
151
|
+
include ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock03
|
152
152
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock03::Module1 ).should == true
|
153
153
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock03::Module2 ).should == true
|
154
154
|
eigenclass = class << self ; self ; end
|
@@ -156,7 +156,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
156
156
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock03::Module2 ).should == false
|
157
157
|
end
|
158
158
|
module ModuleProof2
|
159
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock03
|
159
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock03
|
160
160
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock03::Module1 ).should == false
|
161
161
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock03::Module2 ).should == false
|
162
162
|
eigenclass = class << self ; self ; end
|
@@ -164,7 +164,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
164
164
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock03::Module2 ).should == false
|
165
165
|
end
|
166
166
|
class ClassProof
|
167
|
-
include ModuleCluster::Define::ModuleOrInstanceCluster::Mock03
|
167
|
+
include ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock03
|
168
168
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock03::Module1 ).should == false
|
169
169
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock03::Module2 ).should == false
|
170
170
|
eigenclass = class << self ; self ; end
|
@@ -172,7 +172,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
172
172
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock03::Module2 ).should == false
|
173
173
|
end
|
174
174
|
class ClassProof2
|
175
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock03
|
175
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock03
|
176
176
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock03::Module1 ).should == false
|
177
177
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock03::Module2 ).should == false
|
178
178
|
eigenclass = class << self ; self ; end
|
@@ -180,7 +180,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
180
180
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock03::Module2 ).should == false
|
181
181
|
end
|
182
182
|
Object.new.instance_eval do
|
183
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock03
|
183
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock03
|
184
184
|
eigenclass = class << self ; self ; end
|
185
185
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock03::Module1 ).should == true
|
186
186
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock03::Module2 ).should == true
|
@@ -194,7 +194,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
194
194
|
|
195
195
|
it 'can extend with another module when this one is included in a module or used to extend an instance' do
|
196
196
|
module ModuleCluster::Define::ModuleOrInstanceCluster::Mock04
|
197
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster
|
197
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster
|
198
198
|
module Module1
|
199
199
|
end
|
200
200
|
module Module2
|
@@ -203,7 +203,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
203
203
|
respond_to?( :included ).should == true
|
204
204
|
respond_to?( :extended ).should == true
|
205
205
|
module ModuleProof
|
206
|
-
include ModuleCluster::Define::ModuleOrInstanceCluster::Mock04
|
206
|
+
include ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock04
|
207
207
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock04::Module1 ).should == false
|
208
208
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock04::Module2 ).should == false
|
209
209
|
eigenclass = class << self ; self ; end
|
@@ -211,7 +211,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
211
211
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock04::Module2 ).should == true
|
212
212
|
end
|
213
213
|
module ModuleProof2
|
214
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock04
|
214
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock04
|
215
215
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock04::Module1 ).should == false
|
216
216
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock04::Module2 ).should == false
|
217
217
|
eigenclass = class << self ; self ; end
|
@@ -219,7 +219,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
219
219
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock04::Module2 ).should == false
|
220
220
|
end
|
221
221
|
class ClassProof
|
222
|
-
include ModuleCluster::Define::ModuleOrInstanceCluster::Mock04
|
222
|
+
include ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock04
|
223
223
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock04::Module1 ).should == false
|
224
224
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock04::Module2 ).should == false
|
225
225
|
eigenclass = class << self ; self ; end
|
@@ -227,7 +227,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
227
227
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock04::Module2 ).should == false
|
228
228
|
end
|
229
229
|
class ClassProof2
|
230
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock04
|
230
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock04
|
231
231
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock04::Module1 ).should == false
|
232
232
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock04::Module2 ).should == false
|
233
233
|
eigenclass = class << self ; self ; end
|
@@ -235,7 +235,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
235
235
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock04::Module2 ).should == false
|
236
236
|
end
|
237
237
|
Object.new.instance_eval do
|
238
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock04
|
238
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock04
|
239
239
|
eigenclass = class << self ; self ; end
|
240
240
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock04::Module1 ).should == true
|
241
241
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock04::Module2 ).should == true
|
@@ -249,7 +249,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
249
249
|
|
250
250
|
it 'can extend with another module when this one is used to extend a module or instance' do
|
251
251
|
module ModuleCluster::Define::ModuleOrInstanceCluster::Mock05
|
252
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster
|
252
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster
|
253
253
|
module Module1
|
254
254
|
end
|
255
255
|
module Module2
|
@@ -258,7 +258,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
258
258
|
respond_to?( :included ).should == true
|
259
259
|
respond_to?( :extended ).should == true
|
260
260
|
module ModuleProof
|
261
|
-
include ModuleCluster::Define::ModuleOrInstanceCluster::Mock05
|
261
|
+
include ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock05
|
262
262
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock05::Module1 ).should == false
|
263
263
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock05::Module2 ).should == false
|
264
264
|
eigenclass = class << self ; self ; end
|
@@ -266,7 +266,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
266
266
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock05::Module2 ).should == false
|
267
267
|
end
|
268
268
|
module ModuleProof2
|
269
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock05
|
269
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock05
|
270
270
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock05::Module1 ).should == false
|
271
271
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock05::Module2 ).should == false
|
272
272
|
eigenclass = class << self ; self ; end
|
@@ -274,7 +274,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
274
274
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock05::Module2 ).should == true
|
275
275
|
end
|
276
276
|
class ClassProof
|
277
|
-
include ModuleCluster::Define::ModuleOrInstanceCluster::Mock05
|
277
|
+
include ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock05
|
278
278
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock05::Module1 ).should == false
|
279
279
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock05::Module2 ).should == false
|
280
280
|
eigenclass = class << self ; self ; end
|
@@ -282,7 +282,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
282
282
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock05::Module2 ).should == false
|
283
283
|
end
|
284
284
|
class ClassProof2
|
285
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock05
|
285
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock05
|
286
286
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock05::Module1 ).should == false
|
287
287
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock05::Module2 ).should == false
|
288
288
|
eigenclass = class << self ; self ; end
|
@@ -290,7 +290,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
290
290
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock05::Module2 ).should == false
|
291
291
|
end
|
292
292
|
Object.new.instance_eval do
|
293
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock05
|
293
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock05
|
294
294
|
eigenclass = class << self ; self ; end
|
295
295
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock05::Module1 ).should == true
|
296
296
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock05::Module2 ).should == true
|
@@ -304,7 +304,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
304
304
|
|
305
305
|
it 'can include a module before this one is included in a module or extend an instance before this one is used to extend an instance' do
|
306
306
|
module ModuleCluster::Define::ModuleOrInstanceCluster::Mock06
|
307
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster
|
307
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster
|
308
308
|
module Module1
|
309
309
|
end
|
310
310
|
module Module2
|
@@ -313,7 +313,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
313
313
|
respond_to?( :included ).should == true
|
314
314
|
respond_to?( :extended ).should == true
|
315
315
|
module ModuleProof
|
316
|
-
include ModuleCluster::Define::ModuleOrInstanceCluster::Mock06
|
316
|
+
include ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock06
|
317
317
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock06::Module1 ).should == true
|
318
318
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock06::Module2 ).should == true
|
319
319
|
eigenclass = class << self ; self ; end
|
@@ -321,7 +321,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
321
321
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock06::Module2 ).should == false
|
322
322
|
end
|
323
323
|
module ModuleProof2
|
324
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock06
|
324
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock06
|
325
325
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock06::Module1 ).should == false
|
326
326
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock06::Module2 ).should == false
|
327
327
|
eigenclass = class << self ; self ; end
|
@@ -329,7 +329,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
329
329
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock06::Module2 ).should == true
|
330
330
|
end
|
331
331
|
class ClassProof
|
332
|
-
include ModuleCluster::Define::ModuleOrInstanceCluster::Mock06
|
332
|
+
include ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock06
|
333
333
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock06::Module1 ).should == false
|
334
334
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock06::Module2 ).should == false
|
335
335
|
eigenclass = class << self ; self ; end
|
@@ -337,7 +337,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
337
337
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock06::Module2 ).should == false
|
338
338
|
end
|
339
339
|
class ClassProof2
|
340
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock06
|
340
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock06
|
341
341
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock06::Module1 ).should == false
|
342
342
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock06::Module2 ).should == false
|
343
343
|
eigenclass = class << self ; self ; end
|
@@ -345,7 +345,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
345
345
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock06::Module2 ).should == false
|
346
346
|
end
|
347
347
|
Object.new.instance_eval do
|
348
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock06
|
348
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock06
|
349
349
|
eigenclass = class << self ; self ; end
|
350
350
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock06::Module1 ).should == true
|
351
351
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock06::Module2 ).should == true
|
@@ -359,7 +359,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
359
359
|
|
360
360
|
it 'can include a module before this one is included in a module or extend with another module before this one is used to extend a module or extend an instance before this one is used to extend an instance' do
|
361
361
|
module ModuleCluster::Define::ModuleOrInstanceCluster::Mock07
|
362
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster
|
362
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster
|
363
363
|
module Module1
|
364
364
|
end
|
365
365
|
module Module2
|
@@ -368,7 +368,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
368
368
|
respond_to?( :included ).should == true
|
369
369
|
respond_to?( :extended ).should == true
|
370
370
|
module ModuleProof
|
371
|
-
include ModuleCluster::Define::ModuleOrInstanceCluster::Mock07
|
371
|
+
include ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock07
|
372
372
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock07::Module1 ).should == true
|
373
373
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock07::Module2 ).should == true
|
374
374
|
eigenclass = class << self ; self ; end
|
@@ -376,7 +376,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
376
376
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock07::Module2 ).should == false
|
377
377
|
end
|
378
378
|
module ModuleProof2
|
379
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock07
|
379
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock07
|
380
380
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock07::Module1 ).should == false
|
381
381
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock07::Module2 ).should == false
|
382
382
|
eigenclass = class << self ; self ; end
|
@@ -384,7 +384,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
384
384
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock07::Module2 ).should == false
|
385
385
|
end
|
386
386
|
class ClassProof
|
387
|
-
include ModuleCluster::Define::ModuleOrInstanceCluster::Mock07
|
387
|
+
include ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock07
|
388
388
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock07::Module1 ).should == false
|
389
389
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock07::Module2 ).should == false
|
390
390
|
eigenclass = class << self ; self ; end
|
@@ -392,7 +392,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
392
392
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock07::Module2 ).should == false
|
393
393
|
end
|
394
394
|
class ClassProof2
|
395
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock07
|
395
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock07
|
396
396
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock07::Module1 ).should == false
|
397
397
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock07::Module2 ).should == false
|
398
398
|
eigenclass = class << self ; self ; end
|
@@ -400,7 +400,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
400
400
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock07::Module2 ).should == false
|
401
401
|
end
|
402
402
|
Object.new.instance_eval do
|
403
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock07
|
403
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock07
|
404
404
|
eigenclass = class << self ; self ; end
|
405
405
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock07::Module1 ).should == true
|
406
406
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock07::Module2 ).should == true
|
@@ -414,7 +414,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
414
414
|
|
415
415
|
it 'can include a module before this one is included in a module or extend with another module before this one is used to extend an instance' do
|
416
416
|
module ModuleCluster::Define::ModuleOrInstanceCluster::Mock08
|
417
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster
|
417
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster
|
418
418
|
module Module1
|
419
419
|
end
|
420
420
|
module Module2
|
@@ -423,7 +423,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
423
423
|
respond_to?( :included ).should == true
|
424
424
|
respond_to?( :extended ).should == true
|
425
425
|
module ModuleProof
|
426
|
-
include ModuleCluster::Define::ModuleOrInstanceCluster::Mock08
|
426
|
+
include ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock08
|
427
427
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock08::Module1 ).should == true
|
428
428
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock08::Module2 ).should == true
|
429
429
|
eigenclass = class << self ; self ; end
|
@@ -431,7 +431,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
431
431
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock08::Module2 ).should == false
|
432
432
|
end
|
433
433
|
module ModuleProof2
|
434
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock08
|
434
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock08
|
435
435
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock08::Module1 ).should == false
|
436
436
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock08::Module2 ).should == false
|
437
437
|
eigenclass = class << self ; self ; end
|
@@ -439,7 +439,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
439
439
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock08::Module2 ).should == false
|
440
440
|
end
|
441
441
|
class ClassProof
|
442
|
-
include ModuleCluster::Define::ModuleOrInstanceCluster::Mock08
|
442
|
+
include ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock08
|
443
443
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock08::Module1 ).should == false
|
444
444
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock08::Module2 ).should == false
|
445
445
|
eigenclass = class << self ; self ; end
|
@@ -447,7 +447,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
447
447
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock08::Module2 ).should == false
|
448
448
|
end
|
449
449
|
class ClassProof2
|
450
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock08
|
450
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock08
|
451
451
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock08::Module1 ).should == false
|
452
452
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock08::Module2 ).should == false
|
453
453
|
eigenclass = class << self ; self ; end
|
@@ -455,7 +455,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
455
455
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock08::Module2 ).should == false
|
456
456
|
end
|
457
457
|
Object.new.instance_eval do
|
458
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock08
|
458
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock08
|
459
459
|
eigenclass = class << self ; self ; end
|
460
460
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock08::Module1 ).should == true
|
461
461
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock08::Module2 ).should == true
|
@@ -469,7 +469,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
469
469
|
|
470
470
|
it 'can extend with another module before this one is included in a module or used to extend an instance' do
|
471
471
|
module ModuleCluster::Define::ModuleOrInstanceCluster::Mock09
|
472
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster
|
472
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster
|
473
473
|
module Module1
|
474
474
|
end
|
475
475
|
module Module2
|
@@ -478,7 +478,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
478
478
|
respond_to?( :included ).should == true
|
479
479
|
respond_to?( :extended ).should == true
|
480
480
|
module ModuleProof
|
481
|
-
include ModuleCluster::Define::ModuleOrInstanceCluster::Mock09
|
481
|
+
include ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock09
|
482
482
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock09::Module1 ).should == false
|
483
483
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock09::Module2 ).should == false
|
484
484
|
eigenclass = class << self ; self ; end
|
@@ -486,7 +486,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
486
486
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock09::Module2 ).should == true
|
487
487
|
end
|
488
488
|
module ModuleProof2
|
489
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock09
|
489
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock09
|
490
490
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock09::Module1 ).should == false
|
491
491
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock09::Module2 ).should == false
|
492
492
|
eigenclass = class << self ; self ; end
|
@@ -494,7 +494,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
494
494
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock09::Module2 ).should == false
|
495
495
|
end
|
496
496
|
class ClassProof
|
497
|
-
include ModuleCluster::Define::ModuleOrInstanceCluster::Mock09
|
497
|
+
include ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock09
|
498
498
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock09::Module1 ).should == false
|
499
499
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock09::Module2 ).should == false
|
500
500
|
eigenclass = class << self ; self ; end
|
@@ -502,7 +502,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
502
502
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock09::Module2 ).should == false
|
503
503
|
end
|
504
504
|
class ClassProof2
|
505
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock09
|
505
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock09
|
506
506
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock09::Module1 ).should == false
|
507
507
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock09::Module2 ).should == false
|
508
508
|
eigenclass = class << self ; self ; end
|
@@ -510,7 +510,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
510
510
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock09::Module2 ).should == false
|
511
511
|
end
|
512
512
|
Object.new.instance_eval do
|
513
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock09
|
513
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock09
|
514
514
|
eigenclass = class << self ; self ; end
|
515
515
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock09::Module1 ).should == true
|
516
516
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock09::Module2 ).should == true
|
@@ -524,7 +524,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
524
524
|
|
525
525
|
it 'can extend with another module before this one is used to extend a module or instance' do
|
526
526
|
module ModuleCluster::Define::ModuleOrInstanceCluster::Mock10
|
527
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster
|
527
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster
|
528
528
|
module Module1
|
529
529
|
end
|
530
530
|
module Module2
|
@@ -533,7 +533,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
533
533
|
respond_to?( :included ).should == true
|
534
534
|
respond_to?( :extended ).should == true
|
535
535
|
module ModuleProof
|
536
|
-
include ModuleCluster::Define::ModuleOrInstanceCluster::Mock10
|
536
|
+
include ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock10
|
537
537
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock10::Module1 ).should == false
|
538
538
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock10::Module2 ).should == false
|
539
539
|
eigenclass = class << self ; self ; end
|
@@ -541,7 +541,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
541
541
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock10::Module2 ).should == false
|
542
542
|
end
|
543
543
|
module ModuleProof2
|
544
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock10
|
544
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock10
|
545
545
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock10::Module1 ).should == false
|
546
546
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock10::Module2 ).should == false
|
547
547
|
eigenclass = class << self ; self ; end
|
@@ -549,7 +549,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
549
549
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock10::Module2 ).should == true
|
550
550
|
end
|
551
551
|
class ClassProof
|
552
|
-
include ModuleCluster::Define::ModuleOrInstanceCluster::Mock10
|
552
|
+
include ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock10
|
553
553
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock10::Module1 ).should == false
|
554
554
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock10::Module2 ).should == false
|
555
555
|
eigenclass = class << self ; self ; end
|
@@ -557,7 +557,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
557
557
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock10::Module2 ).should == false
|
558
558
|
end
|
559
559
|
class ClassProof2
|
560
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock10
|
560
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock10
|
561
561
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock10::Module1 ).should == false
|
562
562
|
ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock10::Module2 ).should == false
|
563
563
|
eigenclass = class << self ; self ; end
|
@@ -565,7 +565,7 @@ describe ModuleCluster::Define::ModuleOrInstanceCluster do
|
|
565
565
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock10::Module2 ).should == false
|
566
566
|
end
|
567
567
|
Object.new.instance_eval do
|
568
|
-
extend ModuleCluster::Define::ModuleOrInstanceCluster::Mock10
|
568
|
+
extend ::ModuleCluster::Define::ModuleOrInstanceCluster::Mock10
|
569
569
|
eigenclass = class << self ; self ; end
|
570
570
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock10::Module1 ).should == true
|
571
571
|
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrInstanceCluster::Mock10::Module2 ).should == true
|