Class Mechanize::DirectorySaver
In: lib/mechanize/directory_saver.rb
Parent: Mechanize::Download

Unlike Mechanize::FileSaver, the directory saver places all downloaded files in a single pre-specified directory.

You must register the directory to save to before using the directory saver:

  agent.pluggable_parser['image'] =  #     Mechanize::DirectorySaver.save_to 'images'

Methods

directory   new   save_to  

Public Class methods

The directory downloaded files will be saved to.

Creates a DirectorySaver subclass that will save responses to the given directory.

[Validate]