Class: RenderYieldNode
- Inherits:
-
Object
- Object
- RenderYieldNode
- Defined in:
- lib/p2/compiler/nodes.rb
Instance Attribute Summary collapse
-
#call_node ⇒ Object
readonly
Returns the value of attribute call_node.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
-
#initialize(call_node, translator) ⇒ RenderYieldNode
constructor
A new instance of RenderYieldNode.
Constructor Details
#initialize(call_node, translator) ⇒ RenderYieldNode
Returns a new instance of RenderYieldNode.
200 201 202 203 204 |
# File 'lib/p2/compiler/nodes.rb', line 200 def initialize(call_node, translator) @call_node = call_node @tag = call_node.name @location = call_node.location end |
Instance Attribute Details
#call_node ⇒ Object (readonly)
Returns the value of attribute call_node.
198 199 200 |
# File 'lib/p2/compiler/nodes.rb', line 198 def call_node @call_node end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
198 199 200 |
# File 'lib/p2/compiler/nodes.rb', line 198 def location @location end |
Instance Method Details
#accept(visitor) ⇒ Object
206 207 208 |
# File 'lib/p2/compiler/nodes.rb', line 206 def accept(visitor) visitor.visit_render_yield_node(self) end |