Class: RLSL::Prism::IR::Block
- Defined in:
- lib/rlsl/prism/ir/expressions.rb
Instance Attribute Summary collapse
-
#statements ⇒ Object
readonly
Returns the value of attribute statements.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(statements = []) ⇒ Block
constructor
A new instance of Block.
Methods inherited from Node
Constructor Details
#initialize(statements = []) ⇒ Block
Returns a new instance of Block.
11 12 13 14 |
# File 'lib/rlsl/prism/ir/expressions.rb', line 11 def initialize(statements = []) super() @statements = statements end |
Instance Attribute Details
#statements ⇒ Object (readonly)
Returns the value of attribute statements.
7 8 9 |
# File 'lib/rlsl/prism/ir/expressions.rb', line 7 def statements @statements end |