123456789_123456789_123456789_123456789_123456789_

Class: ActionView::RawStreamingBuffer

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: actionview/lib/action_view/buffers.rb

Class Method Summary

Instance Method Summary

Constructor Details

.new(buffer) ⇒ RawStreamingBuffer

[ GitHub ]

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

def initialize(buffer)
  @buffer = buffer
end

Instance Method Details

#<<(value)

[ GitHub ]

  
# File 'actionview/lib/action_view/buffers.rb', line 155

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

#raw

[ GitHub ]

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

def raw
  self
end