class Regexp::Expression::Group::Named

Attributes

identifier[R]
name[R]

Public Class Methods

new(token, options = {}) click to toggle source
Calls superclass method Regexp::Expression::Subexpression::new
# File lib/regexp_parser/expression/classes/group.rb, line 46
def initialize(token, options = {})
  @name = token.text[3..-2]
  super
end

Public Instance Methods

initialize_clone(orig) click to toggle source
# File lib/regexp_parser/expression/classes/group.rb, line 51
def initialize_clone(orig)
  @name = orig.name.dup
  super
end