diff options
author | Abinoam P. Marques Jr <abinoam@gmail.com> | 2023-01-01 14:00:16 -0300 |
---|---|---|
committer | Abinoam P. Marques Jr <abinoam@gmail.com> | 2023-01-01 14:00:16 -0300 |
commit | bf7ad58dceb5eba1b54461c402375cb711468b2c (patch) | |
tree | 30d6d1a7b36bd23ec62ce74a8cd2f4f5ed178cdd /README.md | |
parent | 078490a4b250008b0f762bceae67018f5f1864f9 (diff) | |
download | highline-bf7ad58dceb5eba1b54461c402375cb711468b2c.tar.gz |
Document the new Question#default_hint_show
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |