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.
7 8 9 |
# File 'lib/babl/operators/each.rb', line 7 def each construct_node(key: nil, continue: nil) { |node| EachNode.new(node) } end |