TypeRule constructor

TypeRule(
  1. String type
)

Creates a rule that accepts a single type string.

Implementation

TypeRule(String type) : types = [type], _single = type;