Sha256: e5ba7a24f627df21f65678323be3b5a73c01814238d536335a1c33b0f47a15e9
Contents?: true
Size: 330 Bytes
Versions: 4
Compression:
Stored size: 330 Bytes
Contents
#!/usr/bin/env ruby require "rubygems" require "highline/import" puts "Using: #{$terminal.terminal.class}" puts choices = "ynaq" answer = ask("Your choice [#{choices}]? ") do |q| q.echo = false q.character = true q.validate = /\A[#{choices}]\Z/ end say("Your choice: #{answer}")
Version data entries
4 entries across 4 versions & 1 rubygems