Class: RLSL::Prism::IR::Block

Inherits:
Node
  • Object
show all
Defined in:
lib/rlsl/prism/ir/expressions.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#type

Instance Method Summary collapse

Methods inherited from Node

#accept, visits

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

#statementsObject (readonly)

Returns the value of attribute statements.



7
8
9
# File 'lib/rlsl/prism/ir/expressions.rb', line 7

def statements
  @statements
end