class_dependencies 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/class_dependencies.rb +2 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.3
|
data/lib/class_dependencies.rb
CHANGED
@@ -89,8 +89,8 @@ module ClassDependencies
|
|
89
89
|
# on first include : they return a closed over value
|
90
90
|
dependencies = TSortHash.new
|
91
91
|
descendants = []
|
92
|
-
mc.send(:define_method, :class_dependencies){dependencies}
|
93
|
-
mc.send(:define_method, :descendants){descendants}
|
92
|
+
mc.send(:define_method, :class_dependencies){dependencies} if ! mc.instance_methods.include?("class_dependencies")
|
93
|
+
mc.send(:define_method, :descendants){descendants} if ! mc.instance_methods.include?("descendants")
|
94
94
|
|
95
95
|
# generate an included method if we are included into a module
|
96
96
|
ClassDependencies::generate_inclusion_method(mod, :included)
|