Method: FileIndexing::IndexerPatterns#serialize
- Defined in:
- lib/file_indexing/indexer_patterns.rb
#serialize ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/file_indexing/indexer_patterns.rb', line 25 def serialize # TODO add a test (including empty collections) indexer_patterns = IndexerPatternsMessage.new positive_patterns.each do |pattern| indexer_patterns.positive_patterns << pattern end negative_patterns.each do |pattern| indexer_patterns.negative_patterns << pattern end indexer_patterns end |