summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel Ferguson <danielferguson@me.com>2013-07-04 15:18:27 +0100
committerDaniel Ferguson <danielferguson@me.com>2013-07-04 15:18:27 +0100
commit87e6dd526e90d27878efdf3069d248068977eb12 (patch)
treeca004a61c4f496082e8c84a52a990391a595e9b5 /examples
parentf5b8857088e0770fb0fbcc1149c35764ddde5d46 (diff)
downloadhighline-87e6dd526e90d27878efdf3069d248068977eb12.tar.gz
fix repeat_entry.rb example to use hash entries as the question
prior to this change, the example would ask "Enter your password: " twice
Diffstat (limited to 'examples')
-rw-r--r--examples/repeat_entry.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/repeat_entry.rb b/examples/repeat_entry.rb
index 2752aa9..012e960 100644
--- a/examples/repeat_entry.rb
+++ b/examples/repeat_entry.rb
@@ -11,7 +11,7 @@ end
puts "Ok, you did it."
-pass = ask("Enter your password: ") do |q|
+pass = ask("<%= @key %>: ") do |q|
q.echo = '*'
q.verify_match = true
q.gather = {"Enter a password" => '',