Class: WWW::Mechanize::FileSaver

Class | WWW::Mechanize::FileSaver
In: | lib/www/mechanize/file_saver.rb
Parent: | File

# Synopsis

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.

## Example to save all PDF‘s

     require 'rubygems'
     require 'mechanize'

     agent = WWW::Mechanize.new
     agent.pluggable_parser.pdf = WWW::Mechanize::FileSaver
     agent.get('http://example.com/foo.pdf')

### Methods

new

### Attributes

filename | [R] |

### Public Class methods

new(uri=nil, response=nil, body=nil, code=nil)

[Validate]