Class | WWW::Mechanize::FileSaver |
In: |
lib/mechanize/pluggable_parsers.rb
|
Parent: | File |
This is a pluggable parser that automatically saves every file it encounters. It saves the files as a tree, reflecting the host and file path.
require 'rubygems' require 'mechanize' agent = WWW::Mechanize.new agent.pluggable_parser.pdf = WWW::Mechanize::FileSaver agent.get('http://example.com/foo.pdf')
filename | [R] |