= Mechanize::FileSaver < Mechanize::Download (from /home/chedong/.local/share/rdoc) ------------------------------------------------------------------------ This is a pluggable parser that automatically saves every file it encounters. Unlike Mechanize::DirectorySaver, the file saver saves the responses as a tree, reflecting the host and file path. == Example This example saves all .pdf files require 'mechanize' agent = Mechanize.new agent.pluggable_parser.pdf = Mechanize::FileSaver agent.get 'http://example.com/foo.pdf' Dir['example.com/*'] # => foo.pdf ------------------------------------------------------------------------ = Class methods: new = Instance methods: filename = Attributes: attr_reader filename
Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-29 12:34 @216.73.217.111
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)