fragment=

fragment=(v)
Instance Public methods

Args

v

String

Description

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

see also URI::Generic.check_fragment

Usage

1
2
3
4
5
6
7
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>
doc_ruby_on_rails
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.