Sha256: 6b57f9aa65fe9457ff184723bdb0c97da43817d6835dd1bab2612fd7ea43783f

Contents?: true

Size: 365 Bytes

Versions: 31

Compression:

Stored size: 365 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 load reset quit}) do |q|
    q.readline = true
  end
  say("Executing \"#{cmd}\"...")
  break if cmd == "quit"
end

Version data entries

31 entries across 31 versions & 3 rubygems

Version Path
malysz87-highline-1.5.10 examples/using_readline.rb
malysz87-highline-1.5.11 examples/using_readline.rb
malysz87-highline-1.5.4 examples/using_readline.rb
malysz87-highline-1.5.5 examples/using_readline.rb
radiant-0.7.2 vendor/highline/examples/using_readline.rb
highline-1.2.4 examples/using_readline.rb
highline-1.0.4 examples/using_readline.rb
highline-1.2.0 examples/using_readline.rb
highline-1.2.6 examples/using_readline.rb
highline-1.2.5 examples/using_readline.rb
highline-1.0.2 examples/using_readline.rb
highline-1.2.1 examples/using_readline.rb
highline-1.2.2 examples/using_readline.rb
highline-1.2.3 examples/using_readline.rb
highline-1.2.8 examples/using_readline.rb
highline-1.4.0 examples/using_readline.rb
highline-1.2.7 examples/using_readline.rb
highline-1.2.9 examples/using_readline.rb
radiant-0.6.0 vendor/highline/examples/using_readline.rb
radiant-0.6.1 vendor/highline/examples/using_readline.rb