Issue #4222 has been updated by Keiju Ishitsuka. Status changed from Assigned to Closed ????????¯ã????§ã?«å¯¾å¿??????¦ã????¾ã???????? ---------------------------------------- Feature #4222: Irb tab completion support for the valid (but rare) obj::method invocation syntax http://redmine.ruby-lang.org/issues/4222 Author: Abinoam P. Marques Jr. Status: Closed Priority: Normal Assignee: Keiju Ishitsuka Category: lib Target version: 1.9.3 =begin class MyC def my_method true end end a = MyC.new # This is a valid method invocation syntax (rare, but valid) a::my_method # => true But when you type in irb a::<press tab> No tab-completion from irb. a.<press tab> is working well. So, I think the small patch bellow could implement this feature. Index: lib/irb/completion.rb =================================================================== --- lib/irb/completion.rb (revisão 30417) +++ lib/irb/completion.rb (cópia de trabalho) @@ -131,7 +131,8 @@ # when /^(\$?(\.?[^.]+)+)\.([^.]*)$/ # when /^((\.?[^.]+)+)\.([^.]*)$/ - when /^([^."].*)\.([^.]*)$/ +# when /^([^."].*)\.([^.]*)$/ + when /^([^."].*)(?:\.|::)([^.]*)$/ # variable receiver = $1 message = Regexp.quote($2) I'm at ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-linux] Ubuntu 10.04 amd64 =end -- http://redmine.ruby-lang.org