Sha256: f2a5830c694fa3ac8656ccb0a928d72f08fe834172b4cffd4f8b473d477ea029

Contents?: true

Size: 398 Bytes

Versions: 79

Compression:

Stored size: 398 Bytes

Contents

#!/usr/bin/env ruby

# asking_for_arrays.rb
#
#  Created by James Edward Gray II on 2005-07-05.
#  Copyright 2005 Gray Productions. All rights reserved.

require "rubygems"
require "highline/import"
require "pp"

grades = ask( "Enter test scores (or a blank line to quit):",
              lambda { |ans| ans =~ /^-?\d+$/ ? Integer(ans) : ans} ) do |q|
  q.gather = ""
end

say("Grades:")
pp grades

Version data entries

79 entries across 69 versions & 11 rubygems

Version Path
brakeman-3.3.4 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/asking_for_arrays.rb
brakeman-3.3.3 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/asking_for_arrays.rb
windows-pr-1.2.5 vendor/bundle/ruby/2.2.0/gems/win32-api-1.6.0-universal-mingw32/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/examples/asking_for_arrays.rb
brakeman-3.3.2 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/asking_for_arrays.rb
win32-api-1.6.0-universal-mingw32 vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/examples/asking_for_arrays.rb
brakeman-3.3.1 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/asking_for_arrays.rb
brakeman-3.3.0 bundle/ruby/2.3.0/gems/highline-1.7.8/examples/asking_for_arrays.rb
highline-1.7.8 examples/asking_for_arrays.rb
highline-1.7.7 examples/asking_for_arrays.rb
highline-1.7.6 examples/asking_for_arrays.rb
highline-1.7.5 examples/asking_for_arrays.rb
highline-1.7.3 examples/asking_for_arrays.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/highline-1.6.21/examples/asking_for_arrays.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/highline-1.6.21/examples/asking_for_arrays.rb
scoot-0.0.4 .bundle/gems/ruby/2.2.0/gems/highline-1.7.2/examples/asking_for_arrays.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/highline-1.6.21/examples/asking_for_arrays.rb
highline-1.7.2 examples/asking_for_arrays.rb
highline-1.7.1 examples/asking_for_arrays.rb
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/examples/asking_for_arrays.rb
clone-1.0.0.beta2 module/gems/highline-1.6.19/examples/asking_for_arrays.rb