Class: Regex::NonCapturingGroup

Inherits:
MonadicExpression show all
Defined in:
lib/regex/non_capturing_group.rb

Overview

A non-capturing group, in other word it is a pure grouping of sub-expressions

Instance Attribute Summary

Attributes inherited from MonadicExpression

#child

Attributes inherited from Expression

#begin_anchor, #end_anchor

Instance Method Summary collapse

Methods inherited from CompoundExpression

#atomic?

Methods inherited from Expression

#atomic?, #cardinality, #options, #to_str

Constructor Details

#initialize(aChildExpression) ⇒ NonCapturingGroup

Constructor. [aChildExpression] A sub-expression to match. When successful the matching text is assigned to the capture variable.



12
13
14
# File 'lib/regex/non_capturing_group.rb', line 12

def initialize(aChildExpression)
  super(aChildExpression)
end