summaryrefslogtreecommitdiff
path: root/lib/highline/terminal
diff options
context:
space:
mode:
authorAbinoam Praxedes Marques Jr <abinoam@gmail.com>2015-07-17 19:12:04 -0300
committerAbinoam Praxedes Marques Jr <abinoam@gmail.com>2015-07-19 21:59:17 -0300
commit8ca40cd1db4e1b6600e4369b73cbd94281372f99 (patch)
tree61793d91456bdd0604cd0fca55a181501825b7d8 /lib/highline/terminal
parent691c1d9043884f99ea6333eb648ae4640b02e725 (diff)
downloadhighline-8ca40cd1db4e1b6600e4369b73cbd94281372f99.tar.gz
Change local variable name 'string' to 'str'
... so it doesn't shadow an argument with same name.
Diffstat (limited to 'lib/highline/terminal')
-rw-r--r--lib/highline/terminal/io_console.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/highline/terminal/io_console.rb b/lib/highline/terminal/io_console.rb
index f53489f..1539acb 100644
--- a/lib/highline/terminal/io_console.rb
+++ b/lib/highline/terminal/io_console.rb
@@ -52,8 +52,8 @@ class HighLine
def readline_read(string, question)
# prep auto-completion
- Readline.completion_proc = lambda do |string|
- question.selection.grep(/\A#{Regexp.escape(string)}/)
+ Readline.completion_proc = lambda do |str|
+ question.selection.grep(/\A#{Regexp.escape(str)}/)
end
# work-around ugly readline() warnings