Class: RenderChildrenNode
- Inherits:
-
Object
- Object
- RenderChildrenNode
- 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) ⇒ RenderChildrenNode
constructor
A new instance of RenderChildrenNode.
Constructor Details
#initialize(call_node, translator) ⇒ RenderChildrenNode
Returns a new instance of RenderChildrenNode.
221 222 223 224 225 |
# File 'lib/papercraft/compiler/nodes.rb', line 221 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.
219 220 221 |
# File 'lib/papercraft/compiler/nodes.rb', line 219 def call_node @call_node end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
219 220 221 |
# File 'lib/papercraft/compiler/nodes.rb', line 219 def location @location end |
Instance Method Details
#accept(visitor) ⇒ Object
227 228 229 |
# File 'lib/papercraft/compiler/nodes.rb', line 227 def accept(visitor) visitor.visit_render_children_node(self) end |