Class: RenderYieldNode
- Inherits:
-
Object
- Object
- RenderYieldNode
- Defined in:
- lib/papercraft/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.
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_node ⇒ Object (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 |
#location ⇒ Object (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 |