Method: Conflow::Redis::RawValueField#==

Defined in:
lib/conflow/redis/raw_value_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:

  • other (Object)

    Object to compare value with. Handles Strings, Symbols and other RawValueFields

Returns:

  • (Boolean)

    true if equal



21
22
23
24
25
26
27
# File 'lib/conflow/redis/raw_value_field.rb', line 21

def ==(other)
  case other
  when String, Symbol then value == other.to_s
  when RawValueField  then key == other.key || to_s == other.to_s
  else super
  end
end