class Addressable::URI
def query=(new_query)
-
new_query
(String, #to_str
) -- The new query component.
def query=(new_query) if new_query && !new_query.respond_to?(:to_str) raise TypeError, "Can't convert #{new_query.class} into String." end @query = new_query ? new_query.to_str : nil # Reset dependent values @normalized_query = NONE remove_composite_values end