MatchArgument

public struct MatchArgument : Argument

Argument type to hold MatchTransformable content. Currently intended for use with Gherkin step argument transforms.

  • Name of the argument

    Declaration

    Swift

    public let name: String?
  • Attempts to transform the match using the given transform. If the transform fails, it will return nil.

    Declaration

    Swift

    public func get<T>(as type: T.Type) -> T? where T : MatchTransformable