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? ⇒ Boolean
Redefined method.
Methods inherited from Expression
#cardinality, #initialize, #options, #to_str
Constructor Details
This class inherits a constructor from Regex::Expression
Instance Method Details
#atomic? ⇒ Boolean
Redefined method. Return true since it may not have any child.
10 11 12 |
# File 'lib/regex/atomic_expression.rb', line 10 def atomic? return true end |