Sha256: c4f100af4399773e448264ea2eb43d80f83f5dc62bc96a1215a3d0535aa8d0e2

Contents?: true

Size: 397 Bytes

Versions: 2

Compression:

Stored size: 397 Bytes

Contents

#!/usr/bin/env ruby

=begin
|======================|
| PhoneNumberValidator |
|----------------------|
| Made by: bag33188    |
|======================|
=end

require 'phone_number_validator'

def pnv
  if (ARGV[0] == nil || ARGV[0] == '')
    print "No phone number entered.\r\n"
  else
    # execute validator
    puts PhoneNumberValidator.validate(ARGV[0])
  end
end

# call pnv function
pnv()

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
phone_number_validator-1.0.2 bin/pnv
phone_number_validator-1.0.1 bin/pnv