class ActionView::StreamingBuffer
:nodoc:
def <<(value)
def <<(value) value = value.to_s value = ERB::Util.h(value) unless value.html_safe? @block.call(value) end
def capture
def capture buffer = +"" old_block, @block = @block, ->(value) { buffer << value } yield buffer.html_safe ensure @block = old_block end
def html_safe
def html_safe self end
def html_safe?
def html_safe? true end
def initialize(block)
def initialize(block) @block = block end
def raw
def raw RawStreamingBuffer.new(self) end
def safe_concat(value)
def safe_concat(value) @block.call(value.to_s) end