Method: Addressable::URI#hash

Defined in:
lib/vendor/addressable/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.



1846
1847
1848
# File 'lib/vendor/addressable/lib/addressable/uri.rb', line 1846

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