Sha256: bcc584863bd6a34e10ca7fe715fcf8ced8f2004097d753f79d41d0410d14baff
Contents?: true
Size: 282 Bytes
Versions: 54
Compression:
Stored size: 282 Bytes
Contents
#!/usr/bin/env ruby require "rubygems" require "highline/import" 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
54 entries across 53 versions & 10 rubygems