ruby-changes:4298
From: ko1@a...
Date: Mon, 17 Mar 2008 16:36:13 +0900 (JST)
Subject: [ruby-changes:4298] nobu - Ruby:r15788 (trunk): * golf_prelude.rb (Object.const_missing): fixed typo.
nobu 2008-03-17 16:35:11 +0900 (Mon, 17 Mar 2008)
New Revision: 15788
Modified files:
trunk/golf_prelude.rb
Log:
* golf_prelude.rb (Object.const_missing): fixed typo.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/golf_prelude.rb?r1=15788&r2=15787&diff_format=u
Index: golf_prelude.rb
===================================================================
--- golf_prelude.rb (revision 15787)
+++ golf_prelude.rb (revision 15788)
@@ -13,7 +13,7 @@
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
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/