Sha256: ecdef2f36b15e5c889ead371861ca86f5d97bc3fa382e0418550da670082985f

Contents?: true

Size: 372 Bytes

Versions: 113

Compression:

Stored size: 372 Bytes

Contents

#!/usr/local/bin/ruby -w

# using_readline.rb
#
#  Created by James Edward Gray II on 2005-07-06.
#  Copyright 2005 Gray Productions. All rights reserved.

require "rubygems"
require "highline/import"

loop do
  cmd = ask("Enter command:  ", %w{save sample load reset quit}) do |q|
    q.readline = true
  end
  say("Executing \"#{cmd}\"...")
  break if cmd == "quit"
end

Version data entries

113 entries across 109 versions & 14 rubygems

Version Path
delano-rye-0.6.2 vendor/highline-1.5.1/examples/using_readline.rb
delano-rye-0.6.3 vendor/highline-1.5.1/examples/using_readline.rb
delano-rye-0.6.4 vendor/highline-1.5.1/examples/using_readline.rb
solutious-rudy-0.6.0 vendor/highline-1.5.1/examples/using_readline.rb
solutious-rudy-0.6.1 vendor/highline-1.5.1/examples/using_readline.rb
solutious-rudy-0.6.2 vendor/highline-1.5.1/examples/using_readline.rb
solutious-rudy-0.6.3 vendor/highline-1.5.1/examples/using_readline.rb
solutious-rudy-0.6.4 vendor/highline-1.5.1/examples/using_readline.rb
solutious-rudy-0.6.5 vendor/highline-1.5.1/examples/using_readline.rb
solutious-rudy-0.6.6 vendor/highline-1.5.1/examples/using_readline.rb
solutious-rudy-0.6.7 vendor/highline-1.5.1/examples/using_readline.rb
solutious-rudy-0.6.8 vendor/highline-1.5.1/examples/using_readline.rb
solutious-rudy-0.7.0 vendor/highline-1.5.1/examples/using_readline.rb
solutious-rudy-0.7.1 vendor/highline-1.5.1/examples/using_readline.rb
solutious-rudy-0.7.2 vendor/highline-1.5.1/examples/using_readline.rb
solutious-rudy-0.7.3 vendor/highline-1.5.1/examples/using_readline.rb
challah-0.6.2 vendor/bundle/gems/highline-1.6.11/examples/using_readline.rb
challah-0.6.2 vendor/bundle/gems/highline-1.6.12/examples/using_readline.rb
challah-0.6.1 vendor/bundle/gems/highline-1.6.11/examples/using_readline.rb
challah-0.6.1 vendor/bundle/gems/highline-1.6.12/examples/using_readline.rb