Method: Origin::Key#hash

Defined in:
lib/origin/key.rb

#hashFixnum

Calculate the hash code for a key.

Returns:

  • (Fixnum)

    The hash code for the key.

Since:

  • 1.1.0



37
38
39
# File 'lib/origin/key.rb', line 37

def hash
  [name, operator, expanded].hash
end