lib/temple/generators/string_buffer.rb in temple-0.6.9 vs lib/temple/generators/string_buffer.rb in temple-0.6.10
- old
+ new
@@ -7,14 +7,14 @@
# _buf << dynamic.to_s
# _buf
#
# @api public
class StringBuffer < ArrayBuffer
- def preamble
+ def create_buffer
"#{buffer} = ''"
end
- def postamble
+ def return_buffer
buffer
end
def on_dynamic(code)
concat("(#{code}).to_s")