Class: Regexp::Expression::Backreference::Base

Inherits:
Regexp::Expression::Base show all
Defined in:
lib/regexp_parser/expression/classes/backreference.rb

Direct Known Subclasses

Name, Number

Instance Attribute Summary collapse

Attributes inherited from Regexp::Expression::Base

#conditional_level, #level, #nesting_level, #options, #quantifier, #set_level, #text, #token, #ts, #type

Instance Method Summary collapse

Methods inherited from Regexp::Expression::Base

#ascii_classes?, #attributes, #base_length, #case_insensitive?, #coded_offset, #default_classes?, #free_spacing?, #full_length, #greedy?, #initialize, #is?, #match, #match?, #multiline?, #offset, #one_of?, #possessive?, #quantified?, #quantifier_affix, #quantify, #quantity, #reluctant?, #repetitions, #strfregexp, #terminal?, #to_re, #to_s, #type?, #unicode_classes?, #unquantified_clone

Constructor Details

This class inherits a constructor from Regexp::Expression::Base

Instance Attribute Details

#referenced_expressionObject

Returns the value of attribute referenced_expression.



4
5
6
# File 'lib/regexp_parser/expression/classes/backreference.rb', line 4

def referenced_expression
  @referenced_expression
end

Instance Method Details

#initialize_copy(orig) ⇒ Object



6
7
8
9
# File 'lib/regexp_parser/expression/classes/backreference.rb', line 6

def initialize_copy(orig)
  self.referenced_expression = orig.referenced_expression.dup
  super
end