Class: Regexp::Expression::Alternative

Inherits:
Sequence show all
Defined in:
lib/regexp_parser/expression/classes/alternation.rb

Overview

A sequence of expressions, used by Alternation as one of its alternative.

Instance Attribute Summary

Attributes inherited from Subexpression

#expressions

Attributes inherited from Base

#conditional_level, #level, #options, #quantifier, #set_level, #text, #token, #ts, #type

Method Summary

Methods inherited from Sequence

#initialize, #quantify, #starts_at, #text

Methods inherited from Subexpression

#<<, #[], #all?, #clone, #each, #each_expression, #each_with_index, #empty?, #first, #initialize, #insert, #last, #length, #map, #strfregexp_tree, #te, #to_h, #to_s, #traverse, #ts

Methods inherited from Base

#ascii_classes?, #case_insensitive?, #clone, #coded_offset, #default_classes?, #free_spacing?, #full_length, #greedy?, #initialize, #is?, #match, #matches?, #multiline?, #offset, #one_of?, #possessive?, #quantified?, #quantify, #quantity, #reluctant?, #starts_at, #strfregexp, #terminal?, #to_h, #to_re, #to_s, #type?, #unicode_classes?

Constructor Details

This class inherits a constructor from Regexp::Expression::Sequence