method
fragment=

fragment=(v)
public
Checks the fragment v component against the URI::Parser Regexp for :FRAGMENT.
Args
v |
Description
Public setter for the fragment component v (with validation).
Usage
require 'uri' uri = URI.parse("http://my.example.com/?id=25#time=1305212049") uri.fragment = "time=1305212086" uri.to_s #=> "http://my.example.com/?id=25#time=1305212086"