class ActionView::OutputBuffer
def initialize(buffer = "")
Experimental RBS support (using type sampling data from the type_fusion
project).
def initialize: (?String buffer) -> void
This signature was generated using 3 samples from 1 application.
puts sbuf # => "hello\u0005"
sbuf << 5
sbuf = ActiveSupport::SafeBuffer.new "hello"
puts obuf # => "hello5"
obuf << 5
obuf = ActionView::OutputBuffer.new "hello"
the input. For example:
checked for nil before they are assigned and `to_s` is called on
is for the methods `<<` and `safe_expr_append=` the inputs are
The main difference between this and ActiveSupport::SafeBuffer
Used as a buffer for views
def initialize(buffer = "") @raw_buffer = String.new(buffer) @raw_buffer.encode! end