Sha256: 68fd2dea394e4b73edcd3dc6cc995fef280abda3220f93d846d2eca000aa9fb1

Contents?: true

Size: 140 Bytes

Versions: 10

Compression:

Stored size: 140 Bytes

Contents

# encoding: utf-8

require 'tty-prompt'

prompt = TTY::Prompt.new

prompt.mask('What is your secret?') do |q|
  q.validate /[a-z]{5,8}/
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tty-prompt-0.10.1 examples/mask.rb
tty-prompt-0.10.0 examples/mask.rb
tty-prompt-0.9.0 examples/mask.rb
tty-prompt-0.8.0 examples/mask.rb
tty-prompt-0.7.1 examples/mask.rb
tty-prompt-0.7.0 examples/mask.rb
tty-prompt-0.6.0 examples/mask.rb
tty-prompt-0.5.0 examples/mask.rb
tty-prompt-0.4.0 examples/mask.rb
tty-prompt-0.3.0 examples/mask.rb