Class: Regex::AtomicExpression
- Inherits:
-
Expression
- Object
- Expression
- Regex::AtomicExpression
- Defined in:
- lib/regex/atomic_expression.rb
Overview
Abstract class. A valid regular expression that cannot be further decomposed into sub-expressions.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Expression
Instance Method Summary collapse
-
#atomic? ⇒ TrueClass
Redefined method.
-
#done! ⇒ Object
Notification that the parse tree construction is complete.
-
#lazy! ⇒ Object
Notification that all quantifiers are lazy.
Methods inherited from Expression
#initialize, #options, #to_str
Constructor Details
This class inherits a constructor from Regex::Expression
Instance Method Details
#atomic? ⇒ TrueClass
Redefined method.
11 12 13 |
# File 'lib/regex/atomic_expression.rb', line 11 def atomic? return true end |
#done! ⇒ Object
Notification that the parse tree construction is complete.
16 17 18 |
# File 'lib/regex/atomic_expression.rb', line 16 def done! # Do nothing end |
#lazy! ⇒ Object
Notification that all quantifiers are lazy
21 22 23 |
# File 'lib/regex/atomic_expression.rb', line 21 def lazy! # Do nothing end |