= private = protected
check_fragment(v)
check the fragment v component against the URI::Parser Regexp for :FRAGMENT
# File lib/uri/generic.rb, line 996 def check_fragment(v) return v unless v if v && v != '' && parser.regexp[:FRAGMENT] !~ v raise InvalidComponentError, "bad component(expected fragment component): #{v}" end return true end