Arborist::Rule
Inherits Reference / Object
Constructors
new(matcher : Arborist::Matcher, name : String, expr : Arborist::Apply | Arborist::Choice | Arborist::Dot | Arborist::MutexAlt | Arborist::NegLookAhead | Arborist::Optional | Arborist::PosLookAhead | Arborist::Repetition | Arborist::RepetitionOnePlus | Arborist::Sequence | Arborist::Terminal)
SourceInstance methods
expr
Sourceexpr=(expr : Expr)
Sourcematcher
Sourcename
Sourcename=(name : String)
Sourceto_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO) which can be overridden for custom implementations.
Also see #inspect.