module-cluster 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. data/README.md +66 -29
  2. data/README.rdoc +66 -29
  3. data/lib/module-cluster.rb +18 -0
  4. data/lib/module-cluster/ModuleCluster.rb +2 -7
  5. data/lib/module-cluster/ModuleCluster/Define/Block.rb +4 -4
  6. data/lib/module-cluster/ModuleCluster/Define/Block/Class.rb +11 -8
  7. data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrInstance.rb +19 -12
  8. data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModule.rb +19 -12
  9. data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModuleOrInstance.rb +19 -12
  10. data/lib/module-cluster/ModuleCluster/Define/Block/Instance.rb +3 -2
  11. data/lib/module-cluster/ModuleCluster/Define/Block/Module.rb +11 -8
  12. data/lib/module-cluster/ModuleCluster/Define/Block/ModuleOrInstance.rb +19 -12
  13. data/lib/module-cluster/ModuleCluster/Define/ClassCluster.rb +39 -46
  14. data/lib/module-cluster/ModuleCluster/Define/ClassOrInstanceCluster.rb +34 -33
  15. data/lib/module-cluster/ModuleCluster/Define/Cluster.rb +31 -42
  16. data/lib/module-cluster/ModuleCluster/Define/ClusterCascades.rb +53 -62
  17. data/lib/module-cluster/ModuleCluster/Define/ClusterCascadesToClass.rb +49 -60
  18. data/lib/module-cluster/ModuleCluster/Define/ClusterCascadesToModule.rb +49 -60
  19. data/lib/module-cluster/ModuleCluster/Define/InstanceCluster.rb +3 -4
  20. data/lib/module-cluster/ModuleCluster/Define/ModuleCluster.rb +39 -46
  21. data/lib/module-cluster/ModuleCluster/Define/ModuleOrClassCluster.rb +55 -54
  22. data/lib/module-cluster/ModuleCluster/Define/ModuleOrInstanceCluster.rb +34 -33
  23. data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures.rb +4 -4
  24. data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures/ClusterStack.rb +1 -1
  25. data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures/PerformCascades.rb +64 -46
  26. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack.rb +7 -5
  27. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block.rb +3 -3
  28. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Class.rb +2 -2
  29. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Instance.rb +1 -1
  30. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Module.rb +2 -2
  31. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Set.rb +4 -1
  32. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Extends.rb +45 -13
  33. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Includes.rb +36 -10
  34. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/PrependsExtends.rb +47 -15
  35. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/PrependsIncludes.rb +38 -12
  36. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Set.rb +29 -1
  37. data/lib/module-cluster/_private_/ModuleCluster/ExtendForCascade.rb +8 -3
  38. data/spec/ModuleCluster/Define/ClassCluster_spec.rb +18 -18
  39. data/spec/ModuleCluster/Define/ClassOrInstanceCluster_spec.rb +10 -10
  40. data/spec/ModuleCluster/Define/ClusterCascadesToClass_spec.rb +18 -18
  41. data/spec/ModuleCluster/Define/ClusterCascadesToModule_spec.rb +18 -18
  42. data/spec/ModuleCluster/Define/ClusterCascades_spec.rb +18 -18
  43. data/spec/ModuleCluster/Define/Cluster_spec.rb +18 -18
  44. data/spec/ModuleCluster/Define/InstanceCluster_spec.rb +2 -2
  45. data/spec/ModuleCluster/Define/ModuleCluster_spec.rb +18 -18
  46. data/spec/ModuleCluster/Define/ModuleOrClassCluster_spec.rb +18 -18
  47. data/spec/ModuleCluster/Define/ModuleOrInstanceCluster_spec.rb +10 -10
  48. data/spec/ModuleCluster_spec.rb +5 -5
  49. data/spec/_private_/ModuleCluster/CascadeFeatures/PerformCascades_spec.rb +110 -2
  50. metadata +2 -2
@@ -34,7 +34,7 @@ describe ModuleCluster::Define::ClassOrInstanceCluster do
34
34
  end
35
35
  module Module2
36
36
  end
37
- class_include_or_extend_or_instance_extend_also_includes_or_extends( Module1, Module2 )
37
+ class_include_or_extend_or_instance_extend_also_includes_or_extends( Module1, Module2 ).name = :some_name
38
38
  respond_to?( :included ).should == true
39
39
  respond_to?( :extended ).should == true
40
40
  module ModuleProof
@@ -89,7 +89,7 @@ describe ModuleCluster::Define::ClassOrInstanceCluster do
89
89
  end
90
90
  module Module2
91
91
  end
92
- class_include_or_extend_or_instance_extend_also_extends( Module1, Module2 )
92
+ class_include_or_extend_or_instance_extend_also_extends( Module1, Module2 ).name = :some_name
93
93
  respond_to?( :included ).should == true
94
94
  respond_to?( :extended ).should == true
95
95
  module ModuleProof
@@ -144,7 +144,7 @@ describe ModuleCluster::Define::ClassOrInstanceCluster do
144
144
  end
145
145
  module Module2
146
146
  end
147
- class_include_or_instance_extend_also_includes_or_extends( Module1, Module2 )
147
+ class_include_or_instance_extend_also_includes_or_extends( Module1, Module2 ).name = :some_name
148
148
  respond_to?( :included ).should == true
149
149
  respond_to?( :extended ).should == true
150
150
  module ModuleProof
@@ -199,7 +199,7 @@ describe ModuleCluster::Define::ClassOrInstanceCluster do
199
199
  end
200
200
  module Module2
201
201
  end
202
- class_include_or_instance_extend_also_extends( Module1, Module2 )
202
+ class_include_or_instance_extend_also_extends( Module1, Module2 ).name = :some_name
203
203
  respond_to?( :included ).should == true
204
204
  respond_to?( :extended ).should == true
205
205
  module ModuleProof
@@ -254,7 +254,7 @@ describe ModuleCluster::Define::ClassOrInstanceCluster do
254
254
  end
255
255
  module Module2
256
256
  end
257
- class_or_instance_extend_also_extends( Module1, Module2 )
257
+ class_or_instance_extend_also_extends( Module1, Module2 ).name = :some_name
258
258
  respond_to?( :included ).should == true
259
259
  respond_to?( :extended ).should == true
260
260
  module ModuleProof
@@ -309,7 +309,7 @@ describe ModuleCluster::Define::ClassOrInstanceCluster do
309
309
  end
310
310
  module Module2
311
311
  end
312
- class_include_or_extend_or_instance_extend_prepends_includes_or_extends( Module1, Module2 )
312
+ class_include_or_extend_or_instance_extend_prepends_includes_or_extends( Module1, Module2 ).name = :some_name
313
313
  respond_to?( :included ).should == true
314
314
  respond_to?( :extended ).should == true
315
315
  module ModuleProof
@@ -364,7 +364,7 @@ describe ModuleCluster::Define::ClassOrInstanceCluster do
364
364
  end
365
365
  module Module2
366
366
  end
367
- class_include_or_instance_extend_prepends_includes_or_extends( Module1, Module2 )
367
+ class_include_or_instance_extend_prepends_includes_or_extends( Module1, Module2 ).name = :some_name
368
368
  respond_to?( :included ).should == true
369
369
  respond_to?( :extended ).should == true
370
370
  module ModuleProof
@@ -419,7 +419,7 @@ describe ModuleCluster::Define::ClassOrInstanceCluster do
419
419
  end
420
420
  module Module2
421
421
  end
422
- class_include_or_extend_or_instance_extend_prepends_extends( Module1, Module2 )
422
+ class_include_or_extend_or_instance_extend_prepends_extends( Module1, Module2 ).name = :some_name
423
423
  respond_to?( :included ).should == true
424
424
  respond_to?( :extended ).should == true
425
425
  module ModuleProof
@@ -474,7 +474,7 @@ describe ModuleCluster::Define::ClassOrInstanceCluster do
474
474
  end
475
475
  module Module2
476
476
  end
477
- class_include_or_instance_extend_prepends_extends( Module1, Module2 )
477
+ class_include_or_instance_extend_prepends_extends( Module1, Module2 ).name = :some_name
478
478
  respond_to?( :included ).should == true
479
479
  respond_to?( :extended ).should == true
480
480
  module ModuleProof
@@ -529,7 +529,7 @@ describe ModuleCluster::Define::ClassOrInstanceCluster do
529
529
  end
530
530
  module Module2
531
531
  end
532
- class_or_instance_extend_prepends_extends( Module1, Module2 )
532
+ class_or_instance_extend_prepends_extends( Module1, Module2 ).name = :some_name
533
533
  respond_to?( :included ).should == true
534
534
  respond_to?( :extended ).should == true
535
535
  module ModuleProof
@@ -24,7 +24,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
24
24
  end
25
25
  module Module2
26
26
  end
27
- include_cascades_includes_to_class( Module1, Module2 )
27
+ include_cascades_includes_to_class( Module1, Module2 ).name = :some_name
28
28
  respond_to?( :included ).should == true
29
29
  module ModuleProof1
30
30
  include ModuleCluster::Define::ClusterCascadesToClass::Mock01
@@ -72,7 +72,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
72
72
  end
73
73
  module Module2
74
74
  end
75
- include_cascades_extends_to_class( Module1, Module2 )
75
+ include_cascades_extends_to_class( Module1, Module2 ).name = :some_name
76
76
  respond_to?( :included ).should == true
77
77
  module ModuleProof1
78
78
  include ModuleCluster::Define::ClusterCascadesToClass::Mock02
@@ -120,7 +120,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
120
120
  end
121
121
  module Module2
122
122
  end
123
- include_cascades_includes_and_extends_to_class( Module1, Module2 )
123
+ include_cascades_includes_and_extends_to_class( Module1, Module2 ).name = :some_name
124
124
  respond_to?( :included ).should == true
125
125
  module ModuleProof1
126
126
  include ModuleCluster::Define::ClusterCascadesToClass::Mock03
@@ -168,7 +168,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
168
168
  end
169
169
  module Module2
170
170
  end
171
- extend_cascades_includes_to_class( Module1, Module2 )
171
+ extend_cascades_includes_to_class( Module1, Module2 ).name = :some_name
172
172
  respond_to?( :extended ).should == true
173
173
  module ModuleProof1
174
174
  extend ModuleCluster::Define::ClusterCascadesToClass::Mock04
@@ -228,7 +228,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
228
228
  end
229
229
  module Module2
230
230
  end
231
- extend_cascades_extends_to_class( Module1, Module2 )
231
+ extend_cascades_extends_to_class( Module1, Module2 ).name = :some_name
232
232
  respond_to?( :extended ).should == true
233
233
  module ModuleProof1
234
234
  extend ModuleCluster::Define::ClusterCascadesToClass::Mock05
@@ -288,7 +288,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
288
288
  end
289
289
  module Module2
290
290
  end
291
- extend_cascades_includes_and_extends_to_class( Module1, Module2 )
291
+ extend_cascades_includes_and_extends_to_class( Module1, Module2 ).name = :some_name
292
292
  respond_to?( :extended ).should == true
293
293
  module ModuleProof1
294
294
  extend ModuleCluster::Define::ClusterCascadesToClass::Mock06
@@ -338,7 +338,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
338
338
  end
339
339
 
340
340
  ###################################################
341
- # include_cascades_to_class_prepending_includes #
341
+ # include_cascades_to_class_prepend_includes #
342
342
  ###################################################
343
343
 
344
344
  it 'include other modules for any class this module or any including modules are included in, before this module or including module is included' do
@@ -348,7 +348,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
348
348
  end
349
349
  module Module2
350
350
  end
351
- include_cascades_to_class_prepending_includes( Module1, Module2 )
351
+ include_cascades_to_class_prepend_includes( Module1, Module2 ).name = :some_name
352
352
  respond_to?( :append_features ).should == true
353
353
  module ModuleProof1
354
354
  include ModuleCluster::Define::ClusterCascadesToClass::Mock07
@@ -386,7 +386,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
386
386
  end
387
387
 
388
388
  ##################################################
389
- # include_cascades_to_class_prepending_extends #
389
+ # include_cascades_to_class_prepend_extends #
390
390
  ##################################################
391
391
 
392
392
  it 'extend other modules for any class this module or any including modules are included in, before this module or including module is included' do
@@ -396,7 +396,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
396
396
  end
397
397
  module Module2
398
398
  end
399
- include_cascades_to_class_prepending_extends( Module1, Module2 )
399
+ include_cascades_to_class_prepend_extends( Module1, Module2 ).name = :some_name
400
400
  respond_to?( :append_features ).should == true
401
401
  module ModuleProof1
402
402
  include ModuleCluster::Define::ClusterCascadesToClass::Mock08
@@ -434,7 +434,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
434
434
  end
435
435
 
436
436
  ###############################################################
437
- # include_cascades_to_class_prepending_includes_and_extends #
437
+ # include_cascades_to_class_prepend_includes_and_extends #
438
438
  ###############################################################
439
439
 
440
440
  it 'include and extend other modules for any class this module or any including modules are included in, before this module or including module is included' do
@@ -444,7 +444,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
444
444
  end
445
445
  module Module2
446
446
  end
447
- include_cascades_to_class_prepending_includes_and_extends( Module1, Module2 )
447
+ include_cascades_to_class_prepend_includes_and_extends( Module1, Module2 ).name = :some_name
448
448
  respond_to?( :append_features ).should == true
449
449
  module ModuleProof1
450
450
  include ModuleCluster::Define::ClusterCascadesToClass::Mock09
@@ -482,7 +482,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
482
482
  end
483
483
 
484
484
  ##################################################
485
- # extend_cascades_to_class_prepending_includes #
485
+ # extend_cascades_to_class_prepend_includes #
486
486
  ##################################################
487
487
 
488
488
  it 'include other modules for any class this module or any including modules are included in, before this module is extended' do
@@ -492,7 +492,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
492
492
  end
493
493
  module Module2
494
494
  end
495
- extend_cascades_to_class_prepending_includes( Module1, Module2 )
495
+ extend_cascades_to_class_prepend_includes( Module1, Module2 ).name = :some_name
496
496
  respond_to?( :extend_object ).should == true
497
497
  module ModuleProof1
498
498
  extend ModuleCluster::Define::ClusterCascadesToClass::Mock10
@@ -542,7 +542,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
542
542
  end
543
543
 
544
544
  #################################################
545
- # extend_cascades_to_class_prepending_extends #
545
+ # extend_cascades_to_class_prepend_extends #
546
546
  #################################################
547
547
 
548
548
  it 'extend other modules for any class this module or any including modules are included in, before this module is extended' do
@@ -552,7 +552,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
552
552
  end
553
553
  module Module2
554
554
  end
555
- extend_cascades_to_class_prepending_extends( Module1, Module2 )
555
+ extend_cascades_to_class_prepend_extends( Module1, Module2 ).name = :some_name
556
556
  respond_to?( :extend_object ).should == true
557
557
  module ModuleProof1
558
558
  extend ModuleCluster::Define::ClusterCascadesToClass::Mock11
@@ -602,7 +602,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
602
602
  end
603
603
 
604
604
  ##############################################################
605
- # extend_cascades_to_class_prepending_includes_and_extends #
605
+ # extend_cascades_to_class_prepend_includes_and_extends #
606
606
  ##############################################################
607
607
 
608
608
  it 'include and extend other modules for any class this module or any including modules are included in, before this module is extended' do
@@ -612,7 +612,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
612
612
  end
613
613
  module Module2
614
614
  end
615
- extend_cascades_to_class_prepending_includes_and_extends( Module1, Module2 )
615
+ extend_cascades_to_class_prepend_includes_and_extends( Module1, Module2 ).name = :some_name
616
616
  respond_to?( :extend_object ).should == true
617
617
  module ModuleProof1
618
618
  extend ModuleCluster::Define::ClusterCascadesToClass::Mock12
@@ -24,7 +24,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
24
24
  end
25
25
  module Module2
26
26
  end
27
- include_cascades_includes_to_module( Module1, Module2 )
27
+ include_cascades_includes_to_module( Module1, Module2 ).name = :some_name
28
28
  respond_to?( :included ).should == true
29
29
  module ModuleProof1
30
30
  include ModuleCluster::Define::ClusterCascadesToModule::Mock01
@@ -73,7 +73,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
73
73
  end
74
74
  module Module2
75
75
  end
76
- include_cascades_extends_to_module( Module1, Module2 )
76
+ include_cascades_extends_to_module( Module1, Module2 ).name = :some_name
77
77
  respond_to?( :included ).should == true
78
78
  module ModuleProof1
79
79
  include ModuleCluster::Define::ClusterCascadesToModule::Mock02
@@ -121,7 +121,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
121
121
  end
122
122
  module Module2
123
123
  end
124
- include_cascades_includes_and_extends_to_module( Module1, Module2 )
124
+ include_cascades_includes_and_extends_to_module( Module1, Module2 ).name = :some_name
125
125
  respond_to?( :included ).should == true
126
126
  module ModuleProof1
127
127
  include ModuleCluster::Define::ClusterCascadesToModule::Mock03
@@ -170,7 +170,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
170
170
  end
171
171
  module Module2
172
172
  end
173
- extend_cascades_includes_to_module( Module1, Module2 )
173
+ extend_cascades_includes_to_module( Module1, Module2 ).name = :some_name
174
174
  respond_to?( :extended ).should == true
175
175
  module ModuleProof1
176
176
  extend ModuleCluster::Define::ClusterCascadesToModule::Mock04
@@ -233,7 +233,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
233
233
  end
234
234
  module Module2
235
235
  end
236
- extend_cascades_extends_to_module( Module1, Module2 )
236
+ extend_cascades_extends_to_module( Module1, Module2 ).name = :some_name
237
237
  respond_to?( :extended ).should == true
238
238
  module ModuleProof1
239
239
  extend ModuleCluster::Define::ClusterCascadesToModule::Mock05
@@ -293,7 +293,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
293
293
  end
294
294
  module Module2
295
295
  end
296
- extend_cascades_includes_and_extends_to_module( Module1, Module2 )
296
+ extend_cascades_includes_and_extends_to_module( Module1, Module2 ).name = :some_name
297
297
  respond_to?( :extended ).should == true
298
298
  module ModuleProof1
299
299
  extend ModuleCluster::Define::ClusterCascadesToModule::Mock06
@@ -345,7 +345,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
345
345
  end
346
346
 
347
347
  ####################################################
348
- # include_cascades_to_module_prepending_includes #
348
+ # include_cascades_to_module_prepend_includes #
349
349
  ####################################################
350
350
 
351
351
  it 'include other modules for any class this module or any including modules are included in, before this module or including module is included' do
@@ -355,7 +355,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
355
355
  end
356
356
  module Module2
357
357
  end
358
- include_cascades_to_module_prepending_includes( Module1, Module2 )
358
+ include_cascades_to_module_prepend_includes( Module1, Module2 ).name = :some_name
359
359
  respond_to?( :append_features ).should == true
360
360
  module ModuleProof1
361
361
  include ModuleCluster::Define::ClusterCascadesToModule::Mock07
@@ -394,7 +394,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
394
394
  end
395
395
 
396
396
  ###################################################
397
- # include_cascades_to_module_prepending_extends #
397
+ # include_cascades_to_module_prepend_extends #
398
398
  ###################################################
399
399
 
400
400
  it 'extend other modules for any class this module or any including modules are included in, before this module or including module is included' do
@@ -404,7 +404,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
404
404
  end
405
405
  module Module2
406
406
  end
407
- include_cascades_to_module_prepending_extends( Module1, Module2 )
407
+ include_cascades_to_module_prepend_extends( Module1, Module2 ).name = :some_name
408
408
  respond_to?( :append_features ).should == true
409
409
  module ModuleProof1
410
410
  include ModuleCluster::Define::ClusterCascadesToModule::Mock08
@@ -442,7 +442,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
442
442
  end
443
443
 
444
444
  ################################################################
445
- # include_cascades_to_module_prepending_includes_and_extends #
445
+ # include_cascades_to_module_prepend_includes_and_extends #
446
446
  ################################################################
447
447
 
448
448
  it 'include and extend other modules for any class this module or any including modules are included in, before this module or including module is included' do
@@ -452,7 +452,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
452
452
  end
453
453
  module Module2
454
454
  end
455
- include_cascades_to_module_prepending_includes_and_extends( Module1, Module2 )
455
+ include_cascades_to_module_prepend_includes_and_extends( Module1, Module2 ).name = :some_name
456
456
  respond_to?( :append_features ).should == true
457
457
  module ModuleProof1
458
458
  include ModuleCluster::Define::ClusterCascadesToModule::Mock09
@@ -491,7 +491,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
491
491
  end
492
492
 
493
493
  ###################################################
494
- # extend_cascades_to_module_prepending_includes #
494
+ # extend_cascades_to_module_prepend_includes #
495
495
  ###################################################
496
496
 
497
497
  it 'include other modules for any class this module or any including modules are included in, before this module is extended' do
@@ -501,7 +501,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
501
501
  end
502
502
  module Module2
503
503
  end
504
- extend_cascades_to_module_prepending_includes( Module1, Module2 )
504
+ extend_cascades_to_module_prepend_includes( Module1, Module2 ).name = :some_name
505
505
  respond_to?( :extend_object ).should == true
506
506
  module ModuleProof1
507
507
  extend ModuleCluster::Define::ClusterCascadesToModule::Mock10
@@ -554,7 +554,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
554
554
  end
555
555
 
556
556
  ##################################################
557
- # extend_cascades_to_module_prepending_extends #
557
+ # extend_cascades_to_module_prepend_extends #
558
558
  ##################################################
559
559
 
560
560
  it 'extend other modules for any class this module or any including modules are included in, before this module is extended' do
@@ -564,7 +564,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
564
564
  end
565
565
  module Module2
566
566
  end
567
- extend_cascades_to_module_prepending_extends( Module1, Module2 )
567
+ extend_cascades_to_module_prepend_extends( Module1, Module2 ).name = :some_name
568
568
  respond_to?( :extend_object ).should == true
569
569
  module ModuleProof1
570
570
  extend ModuleCluster::Define::ClusterCascadesToModule::Mock11
@@ -614,7 +614,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
614
614
  end
615
615
 
616
616
  ###############################################################
617
- # extend_cascades_to_module_prepending_includes_and_extends #
617
+ # extend_cascades_to_module_prepend_includes_and_extends #
618
618
  ###############################################################
619
619
 
620
620
  it 'include and extend other modules for any class this module or any including modules are included in, before this module is extended' do
@@ -624,7 +624,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
624
624
  end
625
625
  module Module2
626
626
  end
627
- extend_cascades_to_module_prepending_includes_and_extends( Module1, Module2 )
627
+ extend_cascades_to_module_prepend_includes_and_extends( Module1, Module2 ).name = :some_name
628
628
  respond_to?( :extend_object ).should == true
629
629
  module ModuleProof1
630
630
  extend ModuleCluster::Define::ClusterCascadesToModule::Mock12
@@ -24,7 +24,7 @@ describe ModuleCluster::Define::ClusterCascades do
24
24
  end
25
25
  module Module2
26
26
  end
27
- include_cascades_includes( Module1, Module2 )
27
+ include_cascades_includes( Module1, Module2 ).name = :some_name
28
28
  respond_to?( :included ).should == true
29
29
  module ModuleProof1
30
30
  include ModuleCluster::Define::ClusterCascades::Mock01
@@ -72,7 +72,7 @@ describe ModuleCluster::Define::ClusterCascades do
72
72
  end
73
73
  module Module2
74
74
  end
75
- include_cascades_extends( Module1, Module2 )
75
+ include_cascades_extends( Module1, Module2 ).name = :some_name
76
76
  respond_to?( :included ).should == true
77
77
  module ModuleProof1
78
78
  include ModuleCluster::Define::ClusterCascades::Mock02
@@ -120,7 +120,7 @@ describe ModuleCluster::Define::ClusterCascades do
120
120
  end
121
121
  module Module2
122
122
  end
123
- include_cascades_includes_and_extends( Module1, Module2 )
123
+ include_cascades_includes_and_extends( Module1, Module2 ).name = :some_name
124
124
  respond_to?( :included ).should == true
125
125
  module ModuleProof1
126
126
  include ModuleCluster::Define::ClusterCascades::Mock03
@@ -168,7 +168,7 @@ describe ModuleCluster::Define::ClusterCascades do
168
168
  end
169
169
  module Module2
170
170
  end
171
- extend_cascades_includes( Module1, Module2 )
171
+ extend_cascades_includes( Module1, Module2 ).name = :some_name
172
172
  respond_to?( :extended ).should == true
173
173
  module ModuleProof1
174
174
  extend ModuleCluster::Define::ClusterCascades::Mock04
@@ -218,7 +218,7 @@ describe ModuleCluster::Define::ClusterCascades do
218
218
  end
219
219
  module Module2
220
220
  end
221
- extend_cascades_extends( Module1, Module2 )
221
+ extend_cascades_extends( Module1, Module2 ).name = :some_name
222
222
  respond_to?( :extended ).should == true
223
223
  module ModuleProof1
224
224
  extend ModuleCluster::Define::ClusterCascades::Mock05
@@ -278,7 +278,7 @@ describe ModuleCluster::Define::ClusterCascades do
278
278
  end
279
279
  module Module2
280
280
  end
281
- extend_cascades_includes_and_extends( Module1, Module2 )
281
+ extend_cascades_includes_and_extends( Module1, Module2 ).name = :some_name
282
282
  respond_to?( :extended ).should == true
283
283
  module ModuleProof1
284
284
  extend ModuleCluster::Define::ClusterCascades::Mock06
@@ -328,7 +328,7 @@ describe ModuleCluster::Define::ClusterCascades do
328
328
  end
329
329
 
330
330
  ##########################################
331
- # include_cascades_prepending_includes #
331
+ # include_cascades_prepend_includes #
332
332
  ##########################################
333
333
 
334
334
  it 'include other modules for any class or module this module is included in, before this module is included' do
@@ -338,7 +338,7 @@ describe ModuleCluster::Define::ClusterCascades do
338
338
  end
339
339
  module Module2
340
340
  end
341
- include_cascades_prepending_includes( Module1, Module2 )
341
+ include_cascades_prepend_includes( Module1, Module2 ).name = :some_name
342
342
  respond_to?( :append_features ).should == true
343
343
  module ModuleProof1
344
344
  include ModuleCluster::Define::ClusterCascades::Mock07
@@ -376,7 +376,7 @@ describe ModuleCluster::Define::ClusterCascades do
376
376
  end
377
377
 
378
378
  #########################################
379
- # include_cascades_prepending_extends #
379
+ # include_cascades_prepend_extends #
380
380
  #########################################
381
381
 
382
382
  it 'extend other modules for any class or module this module is included in, before this module is included' do
@@ -386,7 +386,7 @@ describe ModuleCluster::Define::ClusterCascades do
386
386
  end
387
387
  module Module2
388
388
  end
389
- include_cascades_prepending_extends( Module1, Module2 )
389
+ include_cascades_prepend_extends( Module1, Module2 ).name = :some_name
390
390
  respond_to?( :append_features ).should == true
391
391
  module ModuleProof1
392
392
  include ModuleCluster::Define::ClusterCascades::Mock08
@@ -424,7 +424,7 @@ describe ModuleCluster::Define::ClusterCascades do
424
424
  end
425
425
 
426
426
  ######################################################
427
- # include_cascades_prepending_includes_and_extends #
427
+ # include_cascades_prepend_includes_and_extends #
428
428
  ######################################################
429
429
 
430
430
  it 'include and extend other modules for any class or module this module is included in, before this module is included' do
@@ -434,7 +434,7 @@ describe ModuleCluster::Define::ClusterCascades do
434
434
  end
435
435
  module Module2
436
436
  end
437
- include_cascades_prepending_includes_and_extends( Module1, Module2 )
437
+ include_cascades_prepend_includes_and_extends( Module1, Module2 ).name = :some_name
438
438
  respond_to?( :append_features ).should == true
439
439
  module ModuleProof1
440
440
  include ModuleCluster::Define::ClusterCascades::Mock09
@@ -472,7 +472,7 @@ describe ModuleCluster::Define::ClusterCascades do
472
472
  end
473
473
 
474
474
  #########################################
475
- # extend_cascades_prepending_includes #
475
+ # extend_cascades_prepend_includes #
476
476
  #########################################
477
477
 
478
478
  it 'include other modules for any class or module this module is included in, before this module is extended' do
@@ -482,7 +482,7 @@ describe ModuleCluster::Define::ClusterCascades do
482
482
  end
483
483
  module Module2
484
484
  end
485
- extend_cascades_prepending_includes( Module1, Module2 )
485
+ extend_cascades_prepend_includes( Module1, Module2 ).name = :some_name
486
486
  respond_to?( :extend_object ).should == true
487
487
  module ModuleProof1
488
488
  extend ModuleCluster::Define::ClusterCascades::Mock10
@@ -522,7 +522,7 @@ describe ModuleCluster::Define::ClusterCascades do
522
522
  end
523
523
 
524
524
  ########################################
525
- # extend_cascades_prepending_extends #
525
+ # extend_cascades_prepend_extends #
526
526
  ########################################
527
527
 
528
528
  it 'extend other modules for any class or module this module is included in, before this module is extended' do
@@ -532,7 +532,7 @@ describe ModuleCluster::Define::ClusterCascades do
532
532
  end
533
533
  module Module2
534
534
  end
535
- extend_cascades_prepending_extends( Module1, Module2 )
535
+ extend_cascades_prepend_extends( Module1, Module2 ).name = :some_name
536
536
  respond_to?( :extend_object ).should == true
537
537
  module ModuleProof1
538
538
  extend ModuleCluster::Define::ClusterCascades::Mock11
@@ -582,7 +582,7 @@ describe ModuleCluster::Define::ClusterCascades do
582
582
  end
583
583
 
584
584
  #####################################################
585
- # extend_cascades_prepending_includes_and_extends #
585
+ # extend_cascades_prepend_includes_and_extends #
586
586
  #####################################################
587
587
 
588
588
  it 'include and extend other modules for any class or module this module is included in, before this module is extended' do
@@ -592,7 +592,7 @@ describe ModuleCluster::Define::ClusterCascades do
592
592
  end
593
593
  module Module2
594
594
  end
595
- extend_cascades_prepending_includes_and_extends( Module1, Module2 )
595
+ extend_cascades_prepend_includes_and_extends( Module1, Module2 ).name = :some_name
596
596
  respond_to?( :extend_object ).should == true
597
597
  module ModuleProof1
598
598
  extend ModuleCluster::Define::ClusterCascades::Mock12