Class: AbstractSyntaxTreeKit::Node::MATCH3

Inherits:
AbstractSyntaxTreeKit::Node show all
Defined in:
lib/astkit/node/match3.rb

Instance Attribute Summary collapse

Attributes inherited from AbstractSyntaxTreeKit::Node

#body, #children, #condition, #els, #first_column, #first_lineno, #last_column, #last_lineno, #type

Instance Method Summary collapse

Constructor Details

#initialize(node:, regexp:, string:) ⇒ MATCH3

Returns a new instance of MATCH3.



6
7
8
9
10
# File 'lib/astkit/node/match3.rb', line 6

def initialize(node:, regexp:, string:)
  super(node)
  @regexp = regexp
  @string = string
end

Instance Attribute Details

#regexpObject (readonly)

Returns the value of attribute regexp.



4
5
6
# File 'lib/astkit/node/match3.rb', line 4

def regexp
  @regexp
end

#stringObject (readonly)

Returns the value of attribute string.



4
5
6
# File 'lib/astkit/node/match3.rb', line 4

def string
  @string
end