Class: AbstractSyntaxTreeKit::Node::DREGX

Inherits:
AbstractSyntaxTreeKit::Node show all
Defined in:
lib/astkit/node/dregx.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:, interpolation:, tail_str:) ⇒ DREGX

Returns a new instance of DREGX.



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

def initialize(node:, interpolation:, tail_str:)
  super(node)
  @interpolation = interpolation
  @tail_str = tail_str
end

Instance Attribute Details

#interpolationObject (readonly)

Returns the value of attribute interpolation.



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

def interpolation
  @interpolation
end

#tail_strObject (readonly)

Returns the value of attribute tail_str.



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

def tail_str
  @tail_str
end