Class: Basilisk::CSVProcessor
- Defined in:
- lib/basilisk/processor.rb
Overview
Processors that outputs a csv should inherit from this class.
Direct Known Subclasses
ErrorProcessor, ImageProcessor, SeoProcessor, TermsProcessor
Instance Method Summary collapse
Methods inherited from Processor
#close_file, #initialize, #process_page
Constructor Details
This class inherits a constructor from Basilisk::Processor
Instance Method Details
#write_file(&block) ⇒ Object
36 37 38 39 40 |
# File 'lib/basilisk/processor.rb', line 36 def write_file(&block) FasterCSV.open(filename_for_output, "a") do |csv| yield csv end end |