Class: Deadfire::FrontEnd::BlockNode
- Defined in:
- lib/deadfire/front_end/block_node.rb
Instance Attribute Summary collapse
-
#declarations ⇒ Object
readonly
Returns the value of attribute declarations.
Instance Method Summary collapse
- #<<(node) ⇒ Object
- #accept(visitor) ⇒ Object
-
#initialize ⇒ BlockNode
constructor
A new instance of BlockNode.
Constructor Details
#initialize ⇒ BlockNode
Returns a new instance of BlockNode.
8 9 10 |
# File 'lib/deadfire/front_end/block_node.rb', line 8 def initialize @declarations = [] end |
Instance Attribute Details
#declarations ⇒ Object (readonly)
Returns the value of attribute declarations.
6 7 8 |
# File 'lib/deadfire/front_end/block_node.rb', line 6 def declarations @declarations end |
Instance Method Details
#<<(node) ⇒ Object
12 13 14 |
# File 'lib/deadfire/front_end/block_node.rb', line 12 def <<(node) @declarations << node end |
#accept(visitor) ⇒ Object
16 17 18 |
# File 'lib/deadfire/front_end/block_node.rb', line 16 def accept(visitor) visitor.visit_block_node(self) end |