class Arborist::Rule
- Arborist::Rule
- Reference
- Object
Defined in:
arborist.crConstructors
Instance Method Summary
- #expr : Expr
- #expr=(expr : Expr)
-
#hash(hasher)
See
Object#hash(hasher)
- #matcher : Matcher
- #name : String
- #name=(name : String)
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
Constructor Detail
def self.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)
#
Instance Method Detail
def to_s
#
Description copied from class Object
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
.