Class: Docs::FileScraper

Inherits:
Scraper show all
Defined in:
lib/docs/core/scrapers/file_scraper.rb

Direct Known Subclasses

C, Cpp, Django, Php, Python, Python2, Rdoc

Defined Under Namespace

Classes: Response

Constant Summary

Constants inherited from Doc

Doc::DB_FILENAME, Doc::INDEX_FILENAME

Class Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Scraper

#base_url, #build_page, #build_pages, filters, #initial_paths, #initial_urls, #options, #pipeline, #root_path, #root_path?, #root_url

Methods included from Instrumentable

extended, included

Methods inherited from Doc

as_json, #build_page, #build_pages, db_path, index_path, #initialize, path, store_page, store_pages

Constructor Details

This class inherits a constructor from Docs::Doc

Class Attribute Details

.dirObject

Returns the value of attribute dir


6
7
8
# File 'lib/docs/core/scrapers/file_scraper.rb', line 6

def dir
  @dir
end

Class Method Details

.inherited(subclass) ⇒ Object


8
9
10
11
# File 'lib/docs/core/scrapers/file_scraper.rb', line 8

def inherited(subclass)
  super
  subclass.base_url = base_url
end