class Addressable::URI
def fragment=(new_fragment)
-
new_fragment
(String, #to_str
) -- The new fragment component.
def fragment=(new_fragment) if new_fragment && !new_fragment.respond_to?(:to_str) raise TypeError, "Can't convert #{new_fragment.class} into String." end @fragment = new_fragment ? new_fragment.to_str : nil # Reset dependent values @normalized_fragment = NONE remove_composite_values # Ensure we haven't created an invalid URI validate() end