class ActionDispatch::Response::Header
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/action_dispatch/http/response.rbs class ActionDispatch::Response::Header def []=: (String k, String v) -> untyped end
:nodoc:
def []=(k, v)
Experimental RBS support (using type sampling data from the type_fusion
project).
def []=: (String k, String v) -> untyped
This signature was generated using 1 sample from 1 application.
def []=(k, v) if @response.sending? || @response.sent? raise ActionDispatch::IllegalStateError, "header already sent" end super end
def initialize(response, header)
def initialize(response, header) @response = response super(header) end
def merge(other)
def merge(other) self.class.new @response, __getobj__.merge(other) end
def to_hash
def to_hash __getobj__.dup end