class Regexp::Expression::Conditional::Condition
Attributes
Public Instance Methods
Source
# File lib/regexp_parser/expression/classes/conditional.rb, line 19 def initialize_copy(orig) self.referenced_expression = orig.referenced_expression.dup super end
Calls superclass method
Regexp::Expression::Base#initialize_copy
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.