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 126
def capturing?; self.class.capturing? end
comment?() click to toggle source
# File lib/regexp_parser/expression/methods/tests.rb, line 130
def comment?; self.class.comment? end
decorative?() click to toggle source
# File lib/regexp_parser/expression/methods/tests.rb, line 135
def decorative?; self.class.decorative? end
human_name() click to toggle source
# File lib/regexp_parser/expression/methods/human_name.rb, line 11
def human_name; 'alternation'                 end
negative?() click to toggle source
# File lib/regexp_parser/expression/methods/negative.rb, line 15
def negative?; true                          end
parts() click to toggle source
# File lib/regexp_parser/expression/methods/parts.rb, line 17
def parts; ["#{text}#{'^' if negated?}", *expressions, ']']        end
referential?() click to toggle source
# File lib/regexp_parser/expression/methods/tests.rb, line 140
def referential?; self.class.referential? end
terminal?() click to toggle source
# File lib/regexp_parser/expression/methods/tests.rb, line 122
def terminal?; self.class.terminal? end