Class: Rbexy::Nodes::ExpressionGroup

Inherits:
Object
  • Object
show all
Defined in:
lib/rbexy/nodes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#statementsObject (readonly)

Returns the value of attribute statements.



38
39
40
# File 'lib/rbexy/nodes.rb', line 38

def statements
  @statements
end

Instance Method Details

#compileObject



44
45
46
# File 'lib/rbexy/nodes.rb', line 44

def compile
  statements.map(&:compile).join
end