Class: Refract::StatementsNode
- Defined in:
- lib/refract/nodes/statements_node.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
Instance Method Summary collapse
-
#initialize(prism_node: nil, body:) ⇒ StatementsNode
constructor
A new instance of StatementsNode.
Methods inherited from Node
#accept, #copy, #start_line, #type, type
Constructor Details
#initialize(prism_node: nil, body:) ⇒ StatementsNode
Returns a new instance of StatementsNode.
5 6 7 8 9 |
# File 'lib/refract/nodes/statements_node.rb', line 5 def initialize(prism_node: nil, body:) @prism_node = prism_node => Prism::Node | nil @body = body freeze end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
11 12 13 |
# File 'lib/refract/nodes/statements_node.rb', line 11 def body @body end |