class Curlybars::SafeBuffer

Public Instance Methods

concat(buffer) click to toggle source
Calls superclass method
# File lib/curlybars/safe_buffer.rb, line 3
def concat(buffer)
  if (length + buffer.length) > Curlybars.configuration.output_limit
    message = "Output too long (> %s bytes)" % Curlybars.configuration.output_limit
    raise Curlybars::Error::Render.new('output_too_long', message, nil)
  end
  super
end