Sha256: 10a53faea683a7b8713ae0f25a268324b8b29ea424fc3ace83c4c656237856b6
Contents?: true
Size: 464 Bytes
Versions: 20
Compression:
Stored size: 464 Bytes
Contents
#!/usr/bin/env ruby # encoding: utf-8 # 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" puts "Using: #{HighLine.default_instance.class}" puts grades = ask("Enter test scores (or a blank line to quit):", ->(ans) { ans =~ /^-?\d+$/ ? Integer(ans) : ans }) do |q| q.gather = "" end say("Grades:") pp grades
Version data entries
20 entries across 19 versions & 3 rubygems