Sha256: ae41a0685c6a78a41f886946d8744e48dc58d99eeb75fd506a5f57f1ff12839e

Contents?: true

Size: 508 Bytes

Versions: 3

Compression:

Stored size: 508 Bytes

Contents

module AQL
  class Node
    # Block of AQL statements
    class Block < self
      include Concord.new(:elements)

    private

      # Emit contents
      #
      # @param [Buffer] buffer
      #
      # @return [undefined]
      #
      # @api private
      #
      def emit(buffer)
        local = elements
        max = local.length - 1
        local.each_with_index do |element, index|
          element.visit(buffer)
          buffer.append(' ') if index < max
        end
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aql-0.0.3 lib/aql/node/block.rb
aql-0.0.2 lib/aql/node/block.rb
aql-0.0.1 lib/aql/node/block.rb