Method: Conflow::Redis::HashField#==

Defined in:
lib/conflow/redis/hash_field.rb

#==(other) ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns true if equal.

Parameters:

Returns:

  • (Boolean)

    true if equal



55
56
57
58
59
60
61
# File 'lib/conflow/redis/hash_field.rb', line 55

def ==(other)
  case other
  when Hash      then to_h == other
  when HashField then key == other.key || to_h == other.to_h
  else super
  end
end