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 { |node| Nodes::Each.new(node) }.reset_key.reset_continue
end