Module: Babl::Operators::Each::DSL
- Included in:
- Template
- Defined in:
- lib/babl/operators/each.rb
Instance Method Summary collapse
-
#each ⇒ Object
Construct a JSON array by iterating over the current collection, using the chained template for rendering each element.
Instance Method Details
#each ⇒ Object
Construct a JSON array by iterating over the current collection, using the chained template for rendering each element.
10 11 12 |
# File 'lib/babl/operators/each.rb', line 10 def each construct_node { |node| Nodes::Each.new(node) }.reset_key.reset_continue end |