Method: Addressable::URI#query=
- Defined in:
- lib/addressable/uri.rb
#query=(new_query) ⇒ Object
Sets the query component for this URI.
1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 |
# File 'lib/addressable/uri.rb', line 1641 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 |