summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAbinoam P. Marques Jr <abinoam@gmail.com>2023-01-01 14:00:16 -0300
committerAbinoam P. Marques Jr <abinoam@gmail.com>2023-01-01 14:00:16 -0300
commitbf7ad58dceb5eba1b54461c402375cb711468b2c (patch)
tree30d6d1a7b36bd23ec62ce74a8cd2f4f5ed178cdd /README.md
parent078490a4b250008b0f762bceae67018f5f1864f9 (diff)
downloadhighline-bf7ad58dceb5eba1b54461c402375cb711468b2c.tar.gz
Document the new Question#default_hint_show
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/README.md b/README.md
index 740b446..c1baf49 100644
--- a/README.md
+++ b/README.md
@@ -43,6 +43,15 @@ puts "You have answered: #{answer}"
cli.ask("Company? ") { |q| q.default = "none" }
+## Disable default value hint showing
+
+my_special_default_object = Object.new
+
+cli.ask("Question? ") do |q|
+ q.default = my_special_default_object
+ q.default_hint_show = false
+end
+
# Validation