class Regexp::Expression::Conditional::Condition
Public Instance Methods
Source
# File lib/regexp_parser/expression/classes/conditional.rb, line 14 def reference ref = text.tr("'<>()", "") ref =~ /\D/ ? ref : Integer(ref) end
Name or number of the referenced capturing group that determines state. Returns a String if reference is by name, Integer if by number.