diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-10-02 16:45:35 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-10-02 16:45:35 +0000 |
commit | 29cef5f795043a048a58874d90de0dfe01aa12ea (patch) | |
tree | 6ae42a518c1c5705b8f097668d2b83413da0b6ec /lib/irb/completion.rb | |
parent | 8815306dc5aadd777c887bbd8de7057598ad709c (diff) | |
download | ruby-29cef5f795043a048a58874d90de0dfe01aa12ea.tar.gz |
use Object#class instead of deprecated Object#type.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb/completion.rb')
-rw-r--r-- | lib/irb/completion.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb index a350013e8e..30d60c2449 100644 --- a/lib/irb/completion.rb +++ b/lib/irb/completion.rb @@ -157,7 +157,7 @@ module IRB select_message(receiver, message, candidates) else - candidates = eval("methods | private_methods | local_variables | type.constants", bind) + candidates = eval("methods | private_methods | local_variables | self.class.constants", bind) (candidates|ReservedWords).grep(/^#{Regexp.quote(input)}/) end |