Class: Regex::CompoundExpression

Inherits:
Expression show all
Defined in:
lib/regex/compound_expression.rb

Overview

Abstract class. An element that is part of a regular expression & that has its own child sub-expressions.

Direct Known Subclasses

MonadicExpression, PolyadicExpression

Instance Attribute Summary

Attributes inherited from Expression

#begin_anchor, #end_anchor

Instance Method Summary collapse

Methods inherited from Expression

#initialize, #options, #to_str

Constructor Details

This class inherits a constructor from Regex::Expression

Instance Method Details

#atomic?Boolean

Redefined method. Return false since it may have one or more children.

Returns:

  • (Boolean)


10
11
12
# File 'lib/regex/compound_expression.rb', line 10

def atomic?
  false
end