diff --git a/golf_prelude.rb b/golf_prelude.rb index f0c488abad..a224a5a6c7 100644 --- a/golf_prelude.rb +++ b/golf_prelude.rb @@ -13,7 +13,7 @@ class Object 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