TtsrRule class final

A time-traveling stream rule (omp's Rule, reduced to regex conditions).

patterns are regex source strings (OR'd); the TtsrManager compiles them at registration, skipping invalid ones with a warning. body is the rule content injected as a system reminder when a pattern matches mid-stream (omp's Rule.content).

Constructors

TtsrRule({required String name, required List<String> patterns, required String body, String? path, bool enabled = true, TtsrScope scope = TtsrScope.defaultScope})
Creates a rule.
const

Properties

body String
The injected rule content.
final
enabled bool
Disabled rules are skipped at registration.
final
hashCode int
The hash code for this object.
no setterinherited
name String
Unique rule name; duplicate registrations are ignored (omp semantics).
final
path String?
Provenance rendered into the reminder envelope's path attribute (e.g. ~/.fah/config.yaml or .fah/rules.yaml); null renders as config.
final
patterns List<String>
Regex sources matched against the scoped stream buffers (OR'd).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scope TtsrScope
The streams this rule monitors.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited