class Ecu::Label

def ==(other)

def ==(other)
  return false unless other.instance_of?(self.class)
  equality_properties.all? do |p|
    if %i(value xvalue yvalue).include?(p)
      ValueComparison.new(self.public_send(p), other.public_send(p)).eql?
    else
      self.public_send(p) == other.public_send(p)
    end
  end
end