Class: AbstractSyntaxTreeKit::Node::BLOCK
- Inherits:
-
AbstractSyntaxTreeKit::Node
- Object
- AbstractSyntaxTreeKit::Node
- AbstractSyntaxTreeKit::Node::BLOCK
- Defined in:
- lib/astkit/node/block.rb
Instance Attribute Summary collapse
-
#statements ⇒ Object
readonly
Returns the value of attribute statements.
Attributes inherited from AbstractSyntaxTreeKit::Node
#body, #children, #condition, #els, #first_column, #first_lineno, #last_column, #last_lineno, #type
Instance Method Summary collapse
-
#initialize(node:, statements:) ⇒ BLOCK
constructor
A new instance of BLOCK.
Constructor Details
#initialize(node:, statements:) ⇒ BLOCK
Returns a new instance of BLOCK.
6 7 8 9 |
# File 'lib/astkit/node/block.rb', line 6 def initialize(node:, statements:) super(node) @statements = statements end |
Instance Attribute Details
#statements ⇒ Object (readonly)
Returns the value of attribute statements.
4 5 6 |
# File 'lib/astkit/node/block.rb', line 4 def statements @statements end |