1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* golf_prelude.rb (Object.const_missing): fixed typo.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-03-17 07:35:11 +00:00
parent ae68dc0344
commit a1bebebed1

View file

@ -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