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.to_s
Show source
def host=(v)
check_host(v)
set_host(v)
v
end