Class: Sphinxcrawl::FileCrawler

Inherits:
Crawler
  • Object
show all
Defined in:
lib/sphinxcrawl/file_crawler.rb

Instance Attribute Summary

Attributes inherited from Crawler

#depth

Instance Method Summary collapse

Methods inherited from Crawler

#pages

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