Class: ActionView::RawOutputBuffer

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

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(buffer) ⇒ RawOutputBuffer

Returns a new instance of RawOutputBuffer.



93
94
95
# File 'actionview/lib/action_view/buffers.rb', line 93

def initialize(buffer)
  @buffer = buffer
end

Instance Method Details

#<<(value) ⇒ Object



97
98
99
100
101
# File 'actionview/lib/action_view/buffers.rb', line 97

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

#rawObject



103
104
105
# File 'actionview/lib/action_view/buffers.rb', line 103

def raw
  self
end