Sha256: fc27322384bbf0fc86df6d45f815e0c72b7457d318bf463638bb80dcf4d1d9ea

Contents?: true

Size: 283 Bytes

Versions: 54

Compression:

Stored size: 283 Bytes

Contents

#!/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}!"

Version data entries

54 entries across 53 versions & 10 rubygems

Version Path
brakeman-4.3.1 bundle/ruby/2.5.0/gems/highline-1.7.10/examples/limit.rb
brakeman-4.3.0 bundle/ruby/2.5.0/gems/highline-1.7.10/examples/limit.rb
brakeman-4.2.1 bundle/ruby/2.5.0/gems/highline-1.7.10/examples/limit.rb
brakeman-4.2.0 bundle/ruby/2.3.0/gems/highline-1.7.10/examples/limit.rb
brakeman-4.1.1 bundle/ruby/2.3.0/gems/highline-1.7.10/examples/limit.rb
brakeman-4.1.0 bundle/ruby/2.3.0/gems/highline-1.7.10/examples/limit.rb
highline-1.7.10 examples/limit.rb
brakeman-4.0.1 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/limit.rb
brakeman-4.0.1.pre1 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/limit.rb
brakeman-4.0.0 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/limit.rb
brakeman-3.7.2 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/limit.rb
brakeman-3.7.1 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/limit.rb
brakeman-3.7.0 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/limit.rb
brakeman-3.6.2 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/limit.rb
brakeman-3.6.1 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/limit.rb
brakeman-3.6.0 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/limit.rb
brakeman-3.5.0 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/limit.rb
brakeman-3.4.1 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/limit.rb
brakeman-3.4.0 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/limit.rb
brakeman-3.3.5 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/limit.rb