class HTTP::URI

def http?

Returns:
  • (False) - otherwise
  • (True) - if URI is HTTP
def http?
  HTTP_SCHEME == scheme
end

def https?

Returns:
  • (False) - otherwise
  • (True) - if URI is HTTPS
def https?
  HTTPS_SCHEME == scheme
end

def inspect

Returns:
  • (String) - human-readable representation of URI
def inspect
  format("#<%s:%#0x URI:%s>", self.class, object_id, to_s)
end