Class: Rbexy::Nodes::ExpressionGroup
- Inherits:
-
Object
- Object
- Rbexy::Nodes::ExpressionGroup
- Defined in:
- lib/rbexy/nodes.rb
Instance Attribute Summary collapse
-
#statements ⇒ Object
readonly
Returns the value of attribute statements.
Instance Method Summary collapse
- #compile ⇒ Object
-
#initialize(statements) ⇒ ExpressionGroup
constructor
A new instance of ExpressionGroup.
Constructor Details
#initialize(statements) ⇒ ExpressionGroup
Returns a new instance of ExpressionGroup.
40 41 42 |
# File 'lib/rbexy/nodes.rb', line 40 def initialize(statements) @statements = statements end |
Instance Attribute Details
#statements ⇒ Object (readonly)
Returns the value of attribute statements.
38 39 40 |
# File 'lib/rbexy/nodes.rb', line 38 def statements @statements end |
Instance Method Details
#compile ⇒ Object
44 45 46 |
# File 'lib/rbexy/nodes.rb', line 44 def compile statements.map(&:compile).join end |