Sha256: a2ee314ff50204397543239c65b11137ce2d1fa9fa3ab8b7c409cea1256b832b

Contents?: true

Size: 324 Bytes

Versions: 5

Compression:

Stored size: 324 Bytes

Contents

module Temple
  module Generators
    # Implements an array buffer.
    #
    #   _buf = []
    #   _buf << "static"
    #   _buf << dynamic
    #   _buf
    #
    # @api public
    class Array < Generator
      def preamble
        "#{buffer} = []"
      end

      def postamble
        buffer
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
temple-0.6.9 lib/temple/generators/array.rb
temple-0.6.8 lib/temple/generators/array.rb
temple-0.6.7 lib/temple/generators/array.rb
temple-0.6.6 lib/temple/generators/array.rb
temple-0.6.5 lib/temple/generators/array.rb