method
fragment=
fragment=(v)
public
Args
v |
Description
public setter for the fragment component v. (with validation)
see also URI::Generic.check_fragment
Usage
require 'uri' uri = URI.parse("http://my.example.com/?id=25#time=1305212049") uri.fragment = "time=1305212086" # => "time=1305212086" uri #=> #<URI::HTTP:0x000000007a81f8 URL:http://my.example.com/?id=25#time=1305212086>