port=(v)
public
Args
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
uri
Show source
def port=(v)
check_port(v)
set_port(v)
port
end