Add rbi to replace hidden def

This commit is contained in:
Douglas Eichelberger 2024-01-31 09:33:30 -08:00
parent 004ef6ae87
commit 8b826cc765

View File

@ -1,6 +1,18 @@
# typed: strict # typed: strict
module AbstractDownloadStrategy::Pourable module AbstractDownloadStrategy::Pourable
include Kernel
requires_ancestor { AbstractDownloadStrategy } requires_ancestor { AbstractDownloadStrategy }
end end
class Mechanize::HTTP
ContentDisposition = Struct.new :type, :filename, :creation_date,
:modification_date, :read_date, :size, :parameters
end
class Mechanize::HTTP::ContentDispositionParser
sig {
params(content_disposition: String, header: T::Boolean)
.returns(T.nilable(Mechanize::HTTP::ContentDisposition))
}
def parse(content_disposition, header = false); end
end