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?
-
isEqualToResult(_:)Extension methodIs the choice value equal to the given result?
Declaration
Swift
public func isEqualToResult(_ result: RSDResult?) -> BoolParameters
resultA result to test for equality.
Return Value
trueif the values are equal.
View on GitHub
RSDComparable Protocol Reference