Skip to content

Commit

Permalink
* golf_prelude.rb (Object.const_missing): fixed typo.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Mar 17, 2008
1 parent ae68dc0 commit a1bebeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion golf_prelude.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a1bebeb

Please sign in to comment.