Module: Babl::Operators::Each::DSL

Included in:
Template
Defined in:
lib/babl/operators/each.rb

Instance Method Summary collapse

Instance Method Details

#eachObject

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(key: nil, continue: nil) { |node| Nodes::Each.new(node) }
end