Class: Renshi::AttributeExpressions::While

Inherits:
Object
  • Object
show all
Defined in:
lib/renshi/attribute_expressions/while.rb

Instance Method Summary collapse

Instance Method Details

#evaluate(expression, node) ⇒ Object



4
5
6
7
# File 'lib/renshi/attribute_expressions/while.rb', line 4

def evaluate(expression, node)        
  node.open_clause("while (#{expression})")
  node.close_clause("end")
end