module-cluster 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -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
|
############################################
|