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.



5
6
7
8
# File 'lib/action_view/buffers.rb', line 5

def initialize(*)
  super
  encode!
end

Instance Method Details

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



10
11
12
13
# File 'lib/action_view/buffers.rb', line 10

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

#safe_expr_append=(val) ⇒ Object



16
17
18
19
# File 'lib/action_view/buffers.rb', line 16

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