port=(v)
Instance Public methods
Args
- v
-
String
Description
public setter for the port component v
. (with validation)
see also URI::Generic.check_port
Usage
require 'uri' uri = URI.parse("http://my.example.com") uri.port = 8080 # => 8080 uri #=> #<URI::HTTP:0x000000008e89e8 URL:http://my.example.com:8080>
Please login to continue.