Method: Addressable::URI#inferred_port
- Defined in:
- lib/addressable/uri.rb
#inferred_port ⇒ Integer
The inferred port component for this URI. This method will normalize to the default port for the URI’s scheme if the port isn’t explicitly specified in the URI.
1440 1441 1442 1443 1444 1445 1446 |
# File 'lib/addressable/uri.rb', line 1440 def inferred_port if self.port.to_i == 0 self.default_port else self.port.to_i end end |