summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbinoam Praxedes Marques Jr <abinoam@gmail.com>2015-12-27 03:48:10 -0300
committerAbinoam Praxedes Marques Jr <abinoam@gmail.com>2015-12-27 03:48:32 -0300
commite598488e42bf72e9642df9f08fc3d2a67888e2ad (patch)
tree35f6fe82ed94251667129658da84928423cd6aa3
parent4a8fc9e037e92cf678b42f2fd29bc31e8a6ce356 (diff)
downloadhighline-e598488e42bf72e9642df9f08fc3d2a67888e2ad.tar.gz
Fix #180 - Make it possible to patch the responses hash
... so we can overwrite responses[:ask_on_error]
-rw-r--r--lib/highline/menu.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/highline/menu.rb b/lib/highline/menu.rb
index 3e8f5b0..e0c18de 100644
--- a/lib/highline/menu.rb
+++ b/lib/highline/menu.rb
@@ -425,12 +425,10 @@ class HighLine
# This method will update the intelligent responses to account for
# Menu specific differences. Calls the superclass' (Question's)
# build_responses method, overriding its default arguments to specify
- # 'options' will be used to populate choice lists, and that
- # the newly built hash will predominate over the preexisting hash
- # for any keys that are the same.
+ # 'options' will be used to populate choice lists.
#
- def update_responses( )
- build_responses(options, true)
+ def update_responses
+ build_responses(options)
end
end
end