Method: Sohm::Model#==

Defined in:
lib/sohm.rb

#==(other) ⇒ Object Also known as: eql?

Check for equality by doing the following assertions:

  1. That the passed model is of the same type.

  2. That they represent the same Redis key.



942
943
944
945
946
# File 'lib/sohm.rb', line 942

def ==(other)
  other.kind_of?(model) && other.key == key
rescue MissingID
  false
end