Sha256: de3b6fb2b8858da94b70b6ef72b3b80fe91b48b6c74f3dfebbe1d834c56dc12e
Contents?: true
Size: 365 Bytes
Versions: 20
Compression:
Stored size: 365 Bytes
Contents
#!/usr/bin/env ruby -w # encoding: utf-8 # limit.rb # # Created by James Edward Gray II on 2008-11-12. # Copyright 2008 Gray Productions. All rights reserved. require "rubygems" require "highline/import" puts "Using: #{HighLine.default_instance.terminal.class}" puts text = ask("Enter text (max 10 chars): ") { |q| q.limit = 10 } puts "You entered: #{text}!"
Version data entries
20 entries across 19 versions & 3 rubygems