From 694c996f8cf7c653692e8df7ae70437e24889ba4 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 18 Jul 2006 18:28:16 +0000 Subject: patch was misapplied. fixed. sorry git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/irb/completion.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb index ac227fee9..6211817f2 100644 --- a/lib/irb/completion.rb +++ b/lib/irb/completion.rb @@ -137,8 +137,8 @@ module IRB else # func1.func2 candidates = [] - name = m.name rescue "" ObjectSpace.each_object(Module){|m| + name = m.name rescue "" next if name != "IRB::Context" and /^(IRB|SLex|RubyLex|RubyToken)/ =~ name candidates.concat m.instance_methods(false) -- cgit