Class: Renshi::AttributeExpressions::Each
- Inherits:
-
Object
- Object
- Renshi::AttributeExpressions::Each
- Defined in:
- lib/renshi/attribute_expressions/each.rb
Instance Method Summary collapse
Instance Method Details
#evaluate(expression, node) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/renshi/attribute_expressions/each.rb', line 4 def evaluate(expression, node) bits = expression.split(",") node.open_clause("#{bits[0]}.each do #{bits[1..-1].join(',')}") node.close_clause("end") end |