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:
parent
ae68dc0344
commit
a1bebebed1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue