Class: Basilisk::Processor
- Inherits:
-
Object
- Object
- Basilisk::Processor
- Defined in:
- lib/basilisk/processor.rb
Overview
Base class for page processors.
Direct Known Subclasses
Instance Method Summary collapse
-
#close_file ⇒ Object
Called when the crawl is completed.
-
#initialize(search_name) ⇒ Processor
constructor
A new instance of Processor.
- #process_page(page, page_hash) ⇒ Object
Constructor Details
#initialize(search_name) ⇒ Processor
Returns a new instance of Processor.
5 6 7 8 9 |
# File 'lib/basilisk/processor.rb', line 5 def initialize(search_name) @search_name = search_name @base_folder = Dir.pwd @output_folder = File.join(Dir.pwd, search_name) end |
Instance Method Details
#close_file ⇒ Object
Called when the crawl is completed.
15 16 |
# File 'lib/basilisk/processor.rb', line 15 def close_file end |
#process_page(page, page_hash) ⇒ Object
11 12 |
# File 'lib/basilisk/processor.rb', line 11 def process_page(page, page_hash) end |