Add rbi to replace hidden def
This commit is contained in:
		
							parent
							
								
									004ef6ae87
								
							
						
					
					
						commit
						8b826cc765
					
				@ -1,6 +1,18 @@
 | 
			
		||||
# typed: strict
 | 
			
		||||
 | 
			
		||||
module AbstractDownloadStrategy::Pourable
 | 
			
		||||
  include Kernel
 | 
			
		||||
  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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user