class ActionView::OutputFlow

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/action_view/flows.rbs

class ActionView::OutputFlow
  def set: (Symbol key, ActionView::OutputBuffer value) -> ActiveSupport::SafeBuffer
end

:nodoc:

def append(key, value)

Called by content_for
def append(key, value)
  @content[key] << value.to_s
end

def get(key)

Called by _layout_for to read stored values.
def get(key)
  @content[key]
end

def initialize

def initialize
  @content = Hash.new { |h, k| h[k] = ActiveSupport::SafeBuffer.new }
end

def set(key, value)

Experimental RBS support (using type sampling data from the type_fusion project).

def set: (Symbol key, ActionView::OutputBuffer value) -> ActiveSupport::SafeBuffer

This signature was generated using 1 sample from 1 application.

Called by each renderer object to set the layout contents.
def set(key, value)
  @content[key] = ActiveSupport::SafeBuffer.new(value.to_s)
end