module Geocoder

def ip_address?(value)


dot-delimited 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(/^(::ffff:)?(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/)
end