class Temple::Generators::StringBuffer
Implements a string buffer.
_buf = '' _buf << "static" _buf << dynamic.to_s _buf
@api public
Public Instance Methods
on_dynamic(code)
click to toggle source
# File lib/temple/generators/string_buffer.rb, line 20 def on_dynamic(code) concat("(#{code}).to_s") end
postamble()
click to toggle source
# File lib/temple/generators/string_buffer.rb, line 16 def postamble buffer end
preamble()
click to toggle source
# File lib/temple/generators/string_buffer.rb, line 12 def preamble "#{buffer} = ''" end