Class: ActionView::RawStreamingBuffer
- Inherits:
-
Object
- Object
- ActionView::RawStreamingBuffer
- Defined in:
- lib/action_view/buffers.rb
Overview
:nodoc:
Instance Method Summary collapse
- #<<(value) ⇒ Object
-
#initialize(buffer) ⇒ RawStreamingBuffer
constructor
A new instance of RawStreamingBuffer.
- #raw ⇒ Object
Constructor Details
#initialize(buffer) ⇒ RawStreamingBuffer
Returns a new instance of RawStreamingBuffer.
151 152 153 |
# File 'lib/action_view/buffers.rb', line 151 def initialize(buffer) @buffer = buffer end |
Instance Method Details
#<<(value) ⇒ Object
155 156 157 158 159 |
# File 'lib/action_view/buffers.rb', line 155 def <<(value) unless value.nil? @buffer.block.call(value.to_s) end end |
#raw ⇒ Object
161 162 163 |
# File 'lib/action_view/buffers.rb', line 161 def raw self end |