Sha256: 1ee77f93cdc9b949a9fa360a3481529b52dcb0bec41677a33ef62f3486f65602

Contents?: true

Size: 183 Bytes

Versions: 15

Compression:

Stored size: 183 Bytes

Contents

# encoding: utf-8

require 'tty-prompt'

prompt = TTY::Prompt.new

prompt.ask('How do you like it on scale 1 - 10?', in: '1-10') do |q|
  q.messages[:range?] = "Sorry wrong one!"
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
tty-prompt-0.13.2 examples/in.rb
tty-prompt-0.13.1 examples/in.rb
tty-prompt-0.13.0 examples/in.rb
austb-tty-prompt-0.13.0 examples/in.rb
tty-prompt-0.12.0 examples/in.rb
tty-prompt-0.11.0 examples/in.rb
tty-prompt-0.10.1 examples/in.rb
tty-prompt-0.10.0 examples/in.rb
tty-prompt-0.9.0 examples/in.rb
tty-prompt-0.8.0 examples/in.rb
tty-prompt-0.7.1 examples/in.rb
tty-prompt-0.7.0 examples/in.rb
tty-prompt-0.6.0 examples/in.rb
tty-prompt-0.5.0 examples/in.rb
tty-prompt-0.4.0 examples/in.rb