Skip to content

Instantly share code, notes, and snippets.

@sporkmonger
Created December 2, 2008 16:38
Show Gist options
  • Save sporkmonger/31160 to your computer and use it in GitHub Desktop.
Save sporkmonger/31160 to your computer and use it in GitHub Desktop.
##
# Sets the query component for this URI.
#
# @param [String, #to_str] new_query The new query component.
def query=(new_query)
@query = new_query ? new_query.to_str : nil
# Reset dependant values
@normalized_query = nil
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment