Class: RenderYieldNode

Inherits:
Object
  • Object
show all
Defined in:
lib/papercraft/compiler/nodes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(call_node, translator) ⇒ RenderYieldNode

Returns a new instance of RenderYieldNode.



207
208
209
210
211
# File 'lib/papercraft/compiler/nodes.rb', line 207

def initialize(call_node, translator)
  @call_node = call_node
  @tag = call_node.name
  @location = call_node.location
end

Instance Attribute Details

#call_nodeObject (readonly)

Returns the value of attribute call_node.



205
206
207
# File 'lib/papercraft/compiler/nodes.rb', line 205

def call_node
  @call_node
end

#locationObject (readonly)

Returns the value of attribute location.



205
206
207
# File 'lib/papercraft/compiler/nodes.rb', line 205

def location
  @location
end

Instance Method Details

#accept(visitor) ⇒ Object



213
214
215
# File 'lib/papercraft/compiler/nodes.rb', line 213

def accept(visitor)
  visitor.visit_render_yield_node(self)
end