diff options
author | ryan <ryan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-08 23:17:53 +0000 |
---|---|---|
committer | ryan <ryan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-08 23:17:53 +0000 |
commit | 46eebc130c2f7fb9fd887f7f239472dff83d7ba5 (patch) | |
tree | 75d28bc7c09f5119911e3543896c0eabc773a61e /lib/irb/completion.rb | |
parent | e606129fa1830fbbc5ec7ab8e127377874288ad9 (diff) | |
download | ruby-46eebc130c2f7fb9fd887f7f239472dff83d7ba5.tar.gz ruby-46eebc130c2f7fb9fd887f7f239472dff83d7ba5.tar.xz ruby-46eebc130c2f7fb9fd887f7f239472dff83d7ba5.zip |
cached rdoc diagrams, private rdoc comments, minor clarifications in debug.rb and pp.rb
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb/completion.rb')
-rw-r--r-- | lib/irb/completion.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb index e51a92adc..ac227fee9 100644 --- a/lib/irb/completion.rb +++ b/lib/irb/completion.rb @@ -137,9 +137,10 @@ module IRB else # func1.func2 candidates = [] + name = m.name rescue "" ObjectSpace.each_object(Module){|m| - next if m.name != "IRB::Context" and - /^(IRB|SLex|RubyLex|RubyToken)/ =~ m.name + next if name != "IRB::Context" and + /^(IRB|SLex|RubyLex|RubyToken)/ =~ name candidates.concat m.instance_methods(false) } candidates.sort! |