class Regex::RawExpression

A raw expression is a string that will be copied verbatim (as is) in the generated regular expression.

Attributes

raw[R]

@return [String] String representation of a regular expression (sub)pattern

text_repr[R]

@return [String] String representation of a regular expression (sub)pattern

Public Class Methods

new(rawLiteral) click to toggle source

Constructor @param rawLiteral [String] Sub-pattern expressed as regexp

Calls superclass method
# File lib/regex/raw_expression.rb, line 14
def initialize(rawLiteral)
  super()
  @raw = rawLiteral
end