Class: ActionView::RawStreamingBuffer

Inherits:
Object
  • Object
show all
Defined in:
actionview/lib/action_view/buffers.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(buffer) ⇒ RawStreamingBuffer

Returns a new instance of RawStreamingBuffer.



151
152
153
# File 'actionview/lib/action_view/buffers.rb', line 151

def initialize(buffer)
  @buffer = buffer
end

Instance Method Details

#<<(value) ⇒ Object



155
156
157
158
159
# File 'actionview/lib/action_view/buffers.rb', line 155

def <<(value)
  unless value.nil?
    @buffer.block.call(value.to_s)
  end
end

#rawObject



161
162
163
# File 'actionview/lib/action_view/buffers.rb', line 161

def raw
  self
end