Class: Temple::Generators::ArrayBuffer

Inherits:
Array show all
Defined in:
lib/temple/generators.rb

Overview

Just like Array, but calls #join on the array.

Instance Attribute Summary

Attributes included from Mixins::Options

#options

Instance Method Summary (collapse)

Methods inherited from Array

#preamble

Methods inherited from Temple::Generator

#call, #compile, #on_capture, #on_code, #on_dynamic, #on_multi, #on_newline, #on_static

Methods included from Mixins::Options

included, #initialize

Instance Method Details

- (Object) postamble



89
90
91
# File 'lib/temple/generators.rb', line 89

def postamble
  "#{buffer} = #{buffer}.join"
end