Class: QDA::Filters::DocumentOutputFilter

Inherits:
OutputFilter show all
Defined in:
lib/weft/filters/output.rb

Overview

Inherit, don’t instantiate this class directly

Constant Summary collapse

EXPORT_CLASS =
Document

Class Method Summary collapse

Methods inherited from OutputFilter

#initialize

Constructor Details

This class inherits a constructor from QDA::Filters::OutputFilter

Class Method Details

.def_name(doc) ⇒ Object



26
27
28
# File 'lib/weft/filters/output.rb', line 26

def DocumentOutputFilter.def_name(doc) 
  'document-' << doc.title.gsub(/\s+/, '_').gsub(/\W/,'')
end