summaryrefslogtreecommitdiff
path: root/golf_prelude.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-17 07:35:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-17 07:35:11 +0000
commita1bebebed1ab4e86f930e2b3c106d6dc72caf124 (patch)
tree04f0efe47aebe792138c8aa75bc1071022f35feb /golf_prelude.rb
parentae68dc034434822e9f3dcd86d52d0379ada20668 (diff)
* 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
Diffstat (limited to 'golf_prelude.rb')
-rw-r--r--golf_prelude.rb2
1 files changed, 1 insertions, 1 deletions
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