module-cluster 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,8 @@ module ModuleCluster::IncludeExtendSupport
|
|
7
7
|
|
8
8
|
def set_includes_for_class_or_module( class_or_module, includes )
|
9
9
|
@includes_for_class_or_module ||= Hash.new
|
10
|
-
@includes_for_class_or_module[ class_or_module ]
|
10
|
+
@includes_for_class_or_module[ class_or_module ] ||= Array.new
|
11
|
+
@includes_for_class_or_module[ class_or_module ].concat( includes )
|
11
12
|
end
|
12
13
|
|
13
14
|
#####################################
|
@@ -16,7 +17,8 @@ module ModuleCluster::IncludeExtendSupport
|
|
16
17
|
|
17
18
|
def set_extends_for_class_or_module( class_or_module, extends )
|
18
19
|
@extends_for_class_or_module ||= Hash.new
|
19
|
-
@extends_for_class_or_module[ class_or_module ]
|
20
|
+
@extends_for_class_or_module[ class_or_module ] ||= Array.new
|
21
|
+
@extends_for_class_or_module[ class_or_module ].concat( extends )
|
20
22
|
end
|
21
23
|
|
22
24
|
############################################
|