brew/Library/Homebrew/download_strategy.rbi
2024-01-31 09:41:49 -08:00

19 lines
502 B
Ruby

# typed: strict
module AbstractDownloadStrategy::Pourable
requires_ancestor { AbstractDownloadStrategy }
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