host=(v)
public
Args
Description
public setter for the host component v. (with
validation)
see also URI::Generic.check_host
Usage
require 'uri'
uri = URI.parse("http://my.example.com")
uri.host = "foo.com"
uri
Show source
def host=(v)
check_host(v)
set_host(v)
v
end