module Regexp::Expression
Constants
- Backref
-
alias for symmetry between token symbol and
Expressionclass name - Escape
-
alias for symmetry between Token::* and Expression::*
- MatchLength
- Nonposixclass
- Nonproperty
- Posixclass
-
alias for symmetry between token symbol and
Expressionclass name - Property
-
alias for symmetry between token symbol and
Expressionclass name - Set
-
alias for symmetry between token symbol and
Expressionclass name
Public Instance Methods
Source
# File lib/regexp_parser/expression/methods/tests.rb, line 126 def capturing?; self.class.capturing? end
Source
# File lib/regexp_parser/expression/methods/tests.rb, line 130 def comment?; self.class.comment? end
Source
# File lib/regexp_parser/expression/methods/tests.rb, line 135 def decorative?; self.class.decorative? end
Source
# File lib/regexp_parser/expression/methods/human_name.rb, line 11 def human_name; 'alternation' end
Source
# File lib/regexp_parser/expression/methods/negative.rb, line 15 def negative?; true end
Source
# File lib/regexp_parser/expression/methods/parts.rb, line 17 def parts; ["#{text}#{'^' if negated?}", *expressions, ']'] end
Source
# File lib/regexp_parser/expression/methods/tests.rb, line 140 def referential?; self.class.referential? end
Source
# File lib/regexp_parser/expression/methods/tests.rb, line 122 def terminal?; self.class.terminal? end