From 491d4412a804e04e3ac41398213af7f023283a97 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@10565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/irb/completion.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/irb') diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb index ac227fee90..6211817f29 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 v1.2.3