Class: Sphinxcrawl::FileCrawler
- Defined in:
- lib/sphinxcrawl/file_crawler.rb
Instance Attribute Summary
Attributes inherited from Crawler
Instance Method Summary collapse
-
#initialize(index_file_name, depth = 0) ⇒ FileCrawler
constructor
A new instance of FileCrawler.
Methods inherited from Crawler
Constructor Details
#initialize(index_file_name, depth = 0) ⇒ FileCrawler
Returns a new instance of FileCrawler.
3 4 5 6 7 |
# File 'lib/sphinxcrawl/file_crawler.rb', line 3 def initialize(index_file_name, depth=0) @directory = File.dirname(index_file_name) @basename = File.basename(index_file_name) super(depth) end |