class Addressable::URI

def default_port

Returns:
  • (Integer) - The default port.
def default_port
  URI.port_mapping[self.scheme.strip.downcase] if self.scheme
end