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