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
1 2 3 4 5 6 7 | require 'uri' uri.port = 8080 # => 8080 uri #=> #<URI::HTTP:0x000000008e89e8 URL:http://my.example.com:8080> |
Please login to continue.