Sha256: 62e392997fa3a944972aef033efe54b6d753ac427a37ce5798e14188ef8e6300
Contents?: true
Size: 388 Bytes
Versions: 1
Compression:
Stored size: 388 Bytes
Contents
#!/usr/bin/env ruby require 'sb_prime_table' if ARGV.empty? SbPrimeTable::create_table elsif (Integer ARGV[0] rescue false) n = ARGV[0].to_i if n > 0 SbPrimeTable::create_table ARGV[0].to_i else puts "Negative values are not acceptable" else puts "Acceptable arguments include a positive Integer or no argument" puts "In the case of no argument, 'n' will be 10" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sb_prime_table-0.1.1 | exe/sb_prime_table |