class Regexp::Expression::Group::Options
TODO: should split off OptionsSwitch in v3.0.0. Maybe even make it no longer inherit from Group because it is effectively a terminal expression.
Attributes
Public Instance Methods
Source
# File lib/regexp_parser/expression/classes/group.rb, line 28 def initialize_copy(orig) self.option_changes = orig.option_changes.dup super end
Calls superclass method
Regexp::Expression::Subexpression#initialize_copy
Source
# File lib/regexp_parser/expression/classes/group.rb, line 33 def quantify(*args) if token == :options_switch raise Regexp::Parser::Error, 'Can not quantify an option switch' else super end end
Calls superclass method
Regexp::Expression::Base#quantify