module Regexp::Expression
Constants
- Backref
alias for symmetry between token symbol and
Expression
class name- Escape
alias for symmetry between Token::* and Expression::*
- MatchLength
- Nonposixclass
- Nonproperty
- Posixclass
alias for symmetry between token symbol and
Expression
class name- Property
alias for symmetry between token symbol and
Expression
class name- Set
alias for symmetry between token symbol and
Expression
class name
Public Instance Methods
capturing?()
click to toggle source
# File lib/regexp_parser/expression/methods/tests.rb, line 124 def capturing?; self.class.capturing? end
comment?()
click to toggle source
# File lib/regexp_parser/expression/methods/tests.rb, line 128 def comment?; self.class.comment? end
decorative?()
click to toggle source
# File lib/regexp_parser/expression/methods/tests.rb, line 133 def decorative?; self.class.decorative? end
human_name()
click to toggle source
# File lib/regexp_parser/expression/methods/human_name.rb, line 9 def human_name; 'alternation' end
negative?()
click to toggle source
# File lib/regexp_parser/expression/methods/negative.rb, line 13 def negative?; true end
parts()
click to toggle source
# File lib/regexp_parser/expression/methods/parts.rb, line 15 def parts; ["#{text}#{'^' if negated?}", *expressions, ']'] end
referential?()
click to toggle source
# File lib/regexp_parser/expression/methods/tests.rb, line 138 def referential?; self.class.referential? end
terminal?()
click to toggle source
# File lib/regexp_parser/expression/methods/tests.rb, line 120 def terminal?; self.class.terminal? end