scheme=(v)
public
Args
Description
Public setter for the scheme component v (with
validation).
See also URI::Generic.check_scheme.
Usage
require 'uri'
uri = URI.parse("http://my.example.com")
uri.scheme = "https"
uri.to_s
Show source
def scheme=(v)
check_scheme(v)
set_scheme(v)
v
end