method
user=
v2_4_6 -
Show latest stable
- Class:
URI::Generic
user=(user)public
Args
v |
Description
public setter for the user component. (with validation)
see also URI::Generic.check_user
Usage
require 'uri' uri = URI.parse("http://john:[email protected]") uri.user = "sam" # => "sam" uri #=> #<URI::HTTP:0x00000000881d90 URL:http://sam:[email protected]>