Sha256: d5bc46166000b3ad2729c304ea11b71c3b2d2d53ea4371cfe63df2585a6a6252

Contents?: true

Size: 350 Bytes

Versions: 10

Compression:

Stored size: 350 Bytes

Contents

# require "require_all"
# require_all "lib"
# require 'pry'

class ZipCheck

    def initialize(zip)
        if zip.length != 5 || zip.scan(/[0-9]{5}/)[0].length != 5
            puts "Zip Code is Invalid. Press 'Enter' to return to Main Menu.".colorize(:blue)
            nothing = gets.chomp
            MyCongress.new.call
        end
    end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
my-congress-0.2.0 lib/zip_check.rb
my-congress-0.1.9 lib/zip_check.rb
my-congress-0.1.8 lib/zip_check.rb
my-congress-0.1.7 lib/zip_check.rb
my-congress-0.1.6 lib/zip_check.rb
my-congress-0.1.5 lib/zip_check.rb
my-congress-0.1.4 lib/zip_check.rb
my-congress-0.1.3 lib/zip_check.rb
my-congress-0.1.2 lib/zip_check.rb
my-congress-0.1.1 lib/zip_check.rb