method

hash

ruby latest stable - Class: Gem::Dependency
hash()
public

A dependency’s hash is the XOR of the hashes of name, type, and requirement.