Permalink
Browse files

* 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
  • Loading branch information...
1 parent ae68dc0 commit a1bebebed1ab4e86f930e2b3c106d6dc72caf124 @nobu nobu committed Mar 17, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 golf_prelude.rb
View
@@ -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

0 comments on commit a1bebeb

Please sign in to comment.