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 ] = includes
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 ] = extends
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
  ############################################
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 2
9
- version: 1.0.2
8
+ - 3
9
+ version: 1.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Asher