summaryrefslogtreecommitdiffstats
path: root/lib/irb
diff options
context:
space:
mode:
authorryan <ryan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-10 01:57:22 +0000
committerryan <ryan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-10 01:57:22 +0000
commit4eb380d2d0687e68a31caf538093b98d77e0e8e1 (patch)
treef4926c381878079aca54585a0a8051ee4a305b42 /lib/irb
parent217890307fadd6db105b95d6d495ec5f52ba446f (diff)
downloadruby-4eb380d2d0687e68a31caf538093b98d77e0e8e1.tar.gz
ruby-4eb380d2d0687e68a31caf538093b98d77e0e8e1.tar.xz
ruby-4eb380d2d0687e68a31caf538093b98d77e0e8e1.zip
Merged my changes from HEAD
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb')
-rw-r--r--lib/irb/completion.rb5
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!