Sha256: f80c9736ce725dbbfaa33cedbc347f3972919f17b3f65c7d806a28aed7854bae
Contents?: true
Size: 418 Bytes
Versions: 107
Compression:
Stored size: 418 Bytes
Contents
module Temple module Generators # Implements a string buffer. # # _buf = '' # _buf << "static" # _buf << dynamic.to_s # _buf # # @api public class StringBuffer < ArrayBuffer def create_buffer "#{buffer} = ''" end def return_buffer buffer end def on_dynamic(code) concat("(#{code}).to_s") end end end end
Version data entries
107 entries across 93 versions & 7 rubygems