From: Hiroshi NAKAMURA Date: 2011-06-26T16:40:55+09:00 Subject: [ruby-core:37446] [Ruby 1.9 - Bug #1145] IRB adds trailing quote to wtring methods when performing auto-completion Issue #1145 has been updated by Hiroshi NAKAMURA. Target version set to 1.9.3 ---------------------------------------- Bug #1145: IRB adds trailing quote to wtring methods when performing auto-completion http://redmine.ruby-lang.org/issues/1145 Author: C I Status: Assigned Priority: Normal Assignee: Keiju Ishitsuka Category: Target version: 1.9.3 ruby -v: ruby 1.8.7 (2008-08-11 patchlevel 72) [powerpc-darwin8] =begin IRB adds a trailing quote to some method names when performing an autocompletion. IRB does this for single quote and double quote string literals. Not all methods are effected (for example '.delete' is fine) but at least the following are: .length, .size, .inspect, .to_i Steps to replicate: 1. Enable autocompletion by adding the following line to your ~/.irbrc: require 'irb/completion' 2. Type any string literal, a period, and the characters 'len' to indicate the 'length' method 3. Press tab To illustrate: power-mac-g4:~ $ irb irb(main):001:0> 'test'.len .....becomes... irb(main):001:0> 'test'.length' =end -- http://redmine.ruby-lang.org