class ActionDispatch::Response::RackBody

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

# sig/action_dispatch/http/response.rbs

class ActionDispatch::Response::RackBody
  def initialize: (ActionDispatch::Response response) -> void
end

def body

def body
  @response.body
end

def close

def close
  # Rack "close" maps to Response#abort, and *not* Response#close
  # (which is used when the controller's finished writing)
  @response.abort
end

def each(*args, &block)

def each(*args, &block)
  @response.each(*args, &block)
end

def initialize(response)

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

def initialize: (ActionDispatch::Response response) -> void

This signature was generated using 2 samples from 1 application.

def initialize(response)
  @response = response
end

def respond_to?(method, include_private = false)

def respond_to?(method, include_private = false)
  if method.to_sym == :to_path
    @response.stream.respond_to?(method)
  else
    super
  end
end

def to_path

def to_path
  @response.stream.to_path
end