brew/Library/Homebrew/download_strategy.rbi
Douglas Eichelberger 8a71570a6b brew style --fix
2024-02-18 15:47:56 -08:00

24 lines
751 B
Ruby

# typed: strict
module AbstractDownloadStrategy::Pourable
requires_ancestor { AbstractDownloadStrategy }
end
# This is a third-party implementation
# rubocop:disable Lint/StructNewOverride
class Mechanize::HTTP
ContentDisposition = Struct.new :type, :filename, :creation_date,
:modification_date, :read_date, :size, :parameters
end
# rubocop:enable Lint/StructNewOverride
# rubocop:disable Style/OptionalBooleanParameter
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
# rubocop:enable Style/OptionalBooleanParameter