dgtized (owner)

Revisions

gist: 51291 Download_button fork
public
Public Clone URL: git://gist.github.com/51291.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$ git diff
diff --git a/kernel/common/module.rb b/kernel/common/module.rb
index cfc8372..d3e362a 100644
--- a/kernel/common/module.rb
+++ b/kernel/common/module.rb
@@ -284,7 +284,7 @@ class Module
 
     while mod and cmethod.nil? do
       mod = mod.direct_superclass
- cmethod = mod.method_table[name]
+ cmethod = mod.method_table[name] if mod
     end
 
     # unwrap the real method from Visibility if needed