Changeset 179
- Timestamp:
- 04/20/08 03:26:29 (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/oo_indexer/lib/picolena/templates/app/models/plain_text_extractor.rb
r178 r179 3 3 class PlainTextExtractor 4 4 include PlainTextExtractorDSL 5 @@extractors=[]6 5 class<<self 7 6 # Returns every defined extractor 8 7 def all 9 @@extractors8 Picolena::Extractors 10 9 end 11 10 12 11 # Add an extractor to the extractors list 13 12 def add(extractor) 14 @@extractors<<extractor13 all<<extractor 15 14 end 16 15 branches/oo_indexer/lib/picolena/templates/config/initializers/004_load_filters.rb
r178 r179 1 1 require 'core_exts' 2 2 require 'plain_text_extractor_DSL' 3 3 Picolena::Extractors=[] 4 4 Dir.glob(File.join(RAILS_ROOT,'lib/plain_text_extractors/*.rb')).each{|extractor| 5 5 require extractor
