Changeset 171
- Timestamp:
- 04/19/08 12:22:09 (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/oo_indexer/lib/picolena/templates/lib/filter_DSL.rb
r170 r171 1 # Module used to defineFilters with DSL2 # For example, to convert "Microsoft Office Word document" to plain text1 # Defines Filters with DSL 2 # For example, to convert "Microsoft Office Word document" to plain text 3 3 # Filter.new { 4 4 # from :doc, :dot … … 8 8 # which_should_for_example_extract 'district heating', :from => 'Types of malfunction in DH substations.doc' 9 9 # } 10 11 #FIXME: Find a cleaner way 10 12 require 'app/models/filter.rb' 11 13 class Filter branches/oo_indexer/lib/picolena/templates/lib/filters/adobe.pdf.rb
r170 r171 6 6 7 7 Filter.new { 8 puts self.inspect9 8 from :pdf 10 9 as "application/pdf"
