Actions
Bug #1145
closedIRB adds trailing quote to wtring methods when performing auto-completion
Bug #1145:
IRB adds trailing quote to wtring methods when performing auto-completion
Description
=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:
-
Enable autocompletion by adding the following line to your ~/.irbrc:
require 'irb/completion' -
Type any string literal, a period, and the characters 'len' to indicate the 'length' method
-
Press tab
To illustrate:
power-mac-g4:~ $ irb
irb(main):001:0> 'test'.len
.....becomes...
irb(main):001:0> 'test'.length'
=end
Actions