diff options
author | Gregory Brown <gregory.t.brown@gmail.com> | 2009-02-02 11:59:04 -0500 |
---|---|---|
committer | Gregory Brown <gregory.t.brown@gmail.com> | 2009-02-02 11:59:04 -0500 |
commit | 6ff9ffe5fabf766183db9ed1d548b70e21f02eb6 (patch) | |
tree | 19a69d22f4c15a7ec1dfb69988f2fa51365b08fe /examples/limit.rb | |
parent | 37cd9cff1783911ab51afd90ba6588ce12c58b57 (diff) | |
download | highline-6ff9ffe5fabf766183db9ed1d548b70e21f02eb6.tar.gz |
restructuring
Diffstat (limited to 'examples/limit.rb')
-rw-r--r-- | examples/limit.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/limit.rb b/examples/limit.rb new file mode 100644 index 0000000..a3813e5 --- /dev/null +++ b/examples/limit.rb @@ -0,0 +1,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}!" |