diff --git a/golf_prelude.rb b/golf_prelude.rb index f0c488abadaa08..a224a5a6c7d626 100644 --- a/golf_prelude.rb +++ b/golf_prelude.rb @@ -13,7 +13,7 @@ def matching_methods(s='', m=callable_methods) end def self.const_missing c - t = @@golf_hash[ [m,self.class] ] ||= matching_methods(c,constants)[0] + t = @@golf_hash[ [c,self.class] ] ||= matching_methods(c,constants)[0] t and return const_get(t) raise NameError, "uninitialized constant #{c}", caller(1) end