blob: 0e9313486dc680d644d9454fe60d9a8844cfa19e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# 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
|