Class: Klue::Langcraft::DSL::Processors::FileCollectorProcessor

Inherits:
Processor
  • Object
show all
Defined in:
lib/klue/langcraft/dsl/processors/file_collector_processor.rb

Overview

FileCollectorProcessor class for processing file-related data

This processor is responsible for handling file collection operations within the DSL. It inherits from the base Processor class and implements specific logic for file-related processing.

Instance Attribute Summary

Attributes inherited from Processor

#data, #key

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Processor

#build_result, #initialize

Constructor Details

This class inherits a constructor from Klue::Langcraft::DSL::Processors::Processor

Class Method Details

.keysObject



13
14
15
# File 'lib/klue/langcraft/dsl/processors/file_collector_processor.rb', line 13

def self.keys
  [:file_collector]
end

Instance Method Details

#build_result_dataObject

Example of how a subclass can implement its specific data logic



18
19
20
21
22
# File 'lib/klue/langcraft/dsl/processors/file_collector_processor.rb', line 18

def build_result_data
  {
    files: ['file1.txt', 'file2.txt']
  }
end