Method: HTTP::URI#hash

Defined in:
lib/http/uri.rb

#hashInteger

Hash value based off the normalized form of a URI

Returns:

  • (Integer)

    A hash of the URI



139
140
141
# File 'lib/http/uri.rb', line 139

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