/// <summary> /// Adds the gerund rule. /// </summary> /// <param name="rule">The rule.</param> protected void AddPastRule(string rule) { PastRules.Add(new Rule(rule, string.Empty)); }
/// <summary> /// Determines whether the specified input is past. /// </summary> /// <param name="input">The input.</param> /// <returns><c>true</c> if the specified input is past; otherwise, <c>false</c>.</returns> public bool IsPast(string input) { return(PastRules.Any(x => x.CanApply(input))); }