Class: Regexp::Expression::Group::Comment

Inherits:
Base show all
Defined in:
lib/regexp_parser/expression/classes/group.rb

Instance Attribute Summary

Attributes inherited from Subexpression

#expressions

Attributes inherited from Base

#level, #options, #quantifier, #text, #token, #ts, #type

Instance Method Summary collapse

Methods inherited from Base

#capturing?, #comment?

Methods inherited from Subexpression

#<<, #[], #clone, #each, #each_with_index, #first, #initialize, #insert, #last, #length

Methods inherited from Base

#case_insensitive?, #clone, #coded_offset, #free_spacing?, #full_length, #greedy?, #initialize, #multiline?, #offset, #possessive?, #quantified?, #quantify, #quantity, #reluctant?, #starts_at, #terminal?, #to_re

Constructor Details

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

Instance Method Details

#to_s(format = :full) ⇒ Object



51
52
53
# File 'lib/regexp_parser/expression/classes/group.rb', line 51

def to_s(format = :full)
  @text.dup
end