blob: a3813e5d9f7e03df0825ee52e3f0e15dc6f2ddf1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/usr/bin/env ruby -w
# limit.rb
#
# Created by James Edward Gray II on 2008-11-12.
# Copyright 2008 Gray Productions. All rights reserved.
require "rubygems"
require "highline/import"
text = ask("Enter text (max 10 chars): ") { |q| q.limit = 10 }
puts "You entered: #{text}!"
|