class Regexp::Expression::Backreference::Base

Attributes

referenced_expression[RW]

Public Instance Methods

match_length() click to toggle source
# File lib/regexp_parser/expression/methods/match_length.rb, line 151
def match_length
  if referenced_expression.nil?
    raise ArgumentError, 'Missing referenced_expression - not parsed?'
  end
  referenced_expression.unquantified_clone.match_length
end