RSDComparable

public protocol RSDComparable

RSDComparable can be used to compare a stored result to a matching value.

  • Expected answer for the rule. If nil, then the operator must be .skip or this will return a nil value.

    Declaration

    Swift

    var matchingAnswer: Any? { get }
  • isEqualToResult(_:) Extension method

    Is the choice value equal to the given result?

    Declaration

    Swift

    public func isEqualToResult(_ result: RSDResult?) -> Bool

    Parameters

    result

    A result to test for equality.

    Return Value

    true if the values are equal.