Method: Addressable::URI#hash

Defined in:
lib/addressable/uri.rb

#hashInteger

A hash value that will make a URI equivalent to its normalized form.

Returns:

  • (Integer)

    A hash of the URI.



2263
2264
2265
# File 'lib/addressable/uri.rb', line 2263

def hash
  @hash ||= self.to_s.hash * -1
end