Method: Addressable::URI#port

Defined in:
lib/vendor/addressable/lib/addressable/uri.rb

#portInteger

The port component for this URI. This is the port number actually given in the URI. This does not infer port numbers from default values.

Returns:

  • (Integer)

    The port component.



1028
1029
1030
# File 'lib/vendor/addressable/lib/addressable/uri.rb', line 1028

def port
  return @port ||= nil
end