{
    "content": [
        {
            "type": "text",
            "text": "# Mechanize::FileSaver (ri)\n\n## Sections\n\n- **Mechanize::FileSaver < Mechanize::Download** (1 subsections)\n- **Class methods:**\n- **Instance methods:**\n- **Attributes:**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Mechanize::FileSaver",
        "section": "",
        "mode": "ri",
        "summary": null,
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "Mechanize::FileSaver < Mechanize::Download",
                "lines": 6,
                "subsections": [
                    {
                        "name": "Example",
                        "lines": 10
                    }
                ]
            },
            {
                "name": "Class methods:",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "Instance methods:",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "Attributes:",
                "lines": 2,
                "subsections": []
            }
        ],
        "sections": {
            "Mechanize::FileSaver < Mechanize::Download": {
                "content": "(from /home/chedong/.local/share/rdoc)\n------------------------------------------------------------------------\nThis is a pluggable parser that automatically saves every file it\nencounters.  Unlike Mechanize::DirectorySaver, the file saver saves the\nresponses as a tree, reflecting the host and file path.\n",
                "subsections": [
                    {
                        "name": "Example",
                        "content": "This example saves all .pdf files\n\nrequire 'mechanize'\n\nagent = Mechanize.new\nagent.pluggableparser.pdf = Mechanize::FileSaver\nagent.get 'http://example.com/foo.pdf'\n\nDir['example.com/*'] # => foo.pdf\n------------------------------------------------------------------------"
                    }
                ]
            },
            "Class methods:": {
                "content": "new\n",
                "subsections": []
            },
            "Instance methods:": {
                "content": "filename\n",
                "subsections": []
            },
            "Attributes:": {
                "content": "attrreader filename\n",
                "subsections": []
            }
        }
    }
}