Sha256: 2d94d9f989e72f38121576c160b8fc2bccd2056d53146fd2825fb72ba08d786e

Contents?: true

Size: 199 Bytes

Versions: 7

Compression:

Stored size: 199 Bytes

Contents

# encoding: utf-8

require_relative "../lib/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

7 entries across 7 versions & 1 rubygems

Version Path
tty-prompt-0.17.2 examples/in.rb
tty-prompt-0.17.1 examples/in.rb
tty-prompt-0.17.0 examples/in.rb
tty-prompt-0.16.1 examples/in.rb
tty-prompt-0.16.0 examples/in.rb
tty-prompt-0.15.0 examples/in.rb
tty-prompt-0.14.0 examples/in.rb