class Addressable::URI
def normalized_fragment
-
(String)
- The fragment component, normalized.
def normalized_fragment return nil unless self.fragment return @normalized_fragment unless @normalized_fragment == NONE @normalized_fragment = begin component = Addressable::URI.normalize_component( self.fragment, Addressable::URI::NormalizeCharacterClasses::FRAGMENT ) component == "" ? nil : component end # All normalized values should be UTF-8 force_utf8_encoding_if_needed(@normalized_fragment) @normalized_fragment end