examples/in.rb in tty-prompt-0.3.0 vs examples/in.rb in tty-prompt-0.4.0
- old
+ new
@@ -2,6 +2,8 @@
require 'tty-prompt'
prompt = TTY::Prompt.new
-prompt.ask('How do you like it on scale 1 - 10?', in: '1-10')
+prompt.ask('How do you like it on scale 1 - 10?', in: '1-10') do |q|
+ q.messages[:range?] = "Sorry wrong one!"
+end