Method: Mechanize::HTTP::ContentDispositionParser.parse

Defined in:
lib/mechanize/http/content_disposition_parser.rb

.parse(content_disposition) ⇒ Object

Parses the disposition type and params in the content_disposition string. The “Content-Disposition:” must be removed.



32
33
34
35
# File 'lib/mechanize/http/content_disposition_parser.rb', line 32

def self.parse content_disposition
  @parser ||= self.new
  @parser.parse content_disposition
end