Sha256: 9450751c1dfce6f3d8dbc6b58f70cafb3632efb4bcf19a933935cf95dd2d4f76

Contents?: true

Size: 352 Bytes

Versions: 5

Compression:

Stored size: 352 Bytes

Contents

class ZipCheck

    def initialize(address)
        if address[:zip].length != 5 || address[:zip].scan(/[0-9]{5}/)[0].length != 5
            puts " "
            puts " "
            prompt = TTY::Prompt.new
            prompt.keypress("Invalid Zip Code. Press any key to return to Main Menu.")
            MyCongress.new.call
        end
    end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
my-congress-0.2.7 lib/zip_check.rb
my-congress-0.2.6 lib/zip_check.rb
my-congress-0.2.5 lib/zip_check.rb
my-congress-0.2.4 lib/zip_check.rb
my-congress-0.2.3 lib/zip_check.rb