module Geocoder

def ip_address?(value)


dot-delimited 8-bit numbers.
Does not check for actual validity, just the appearance of four

Does the given value look like an IP address?
#
def ip_address?(value)
  !!value.to_s.match(/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/)
end