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 56
def initialize(token, options = {})
  @name = token.text[3..-2]
  super
end

Public Instance Methods

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