Class: ActionView::OutputBuffer

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

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initializeOutputBuffer

Returns a new instance of OutputBuffer.



7
8
9
10
# File 'lib/action_view/buffers.rb', line 7

def initialize(*)
  super
  encode!
end

Instance Method Details

#<<(value) ⇒ Object Also known as: append=



12
13
14
15
# File 'lib/action_view/buffers.rb', line 12

def <<(value)
  return self if value.nil?
  super(value.to_s)
end

#safe_expr_append=(val) ⇒ Object



18
19
20
21
# File 'lib/action_view/buffers.rb', line 18

def safe_expr_append=(val)
  return self if val.nil?
  safe_concat val.to_s
end