Sha256: b19e7947731a241f84f5d0d8a6e6413c72c34bec4d522b2d30b94ef15afced26

Contents?: true

Size: 223 Bytes

Versions: 5

Compression:

Stored size: 223 Bytes

Contents

# encoding: utf-8

require_relative "../lib/tty-prompt"

prompt = TTY::Prompt.new

warriors = %w(Scorpion Kano Jax Kitana Raiden)

answer = prompt.select('Choose your destiny?', warriors, filter: true)

puts answer.inspect

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tty-prompt-0.17.2 examples/select_filtered.rb
tty-prompt-0.17.1 examples/select_filtered.rb
tty-prompt-0.17.0 examples/select_filtered.rb
tty-prompt-0.16.1 examples/select_filtered.rb
tty-prompt-0.16.0 examples/select_filtered.rb