class Addressable::URI

def ip_based?

Returns:
  • (TrueClass, FalseClass) -
def ip_based?
  if self.scheme
    return URI.ip_based_schemes.include?(
      self.scheme.strip.downcase)
  end
  return false
end