query=(v) public

Args

v

String

Description

public setter for the query component v. (with validation)

see also URI::Generic.check_query

Usage

require 'uri'

uri = URI.parse("http://my.example.com/?id=25")
uri.query = "id=1"
# =>  "id=1"
uri
#=> #<URI::HTTP:0x000000008e89e8 URL:http://my.example.com/?id=1>
Show source
Register or log in to add new notes.