Flowdock

Used as a buffer for views

The main difference between this and ActiveSupport::SafeBuffer is for the methods `<<` and `safe_expr_append=` the inputs are checked for nil before they are assigned and `to_s` is called on the input. For example:

obuf = ActionView::OutputBuffer.new "hello"
obuf << 5
puts obuf # => "hello5"

sbuf = ActiveSupport::SafeBuffer.new "hello"
sbuf << 5
puts sbuf # => "hello\u0005"
Show files where this class is defined (1 file)
Register or log in to add new notes.