Sha256: ec571bc4efe8dc8aab6f0850729aee5f5e375e6f0713a339191f1c5a73e29551

Contents?: true

Size: 886 Bytes

Versions: 3

Compression:

Stored size: 886 Bytes

Contents

# frozen_string_literal: true

module Klue
  module Langcraft
    module DSL
      module Processors
        # 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.
        class FileCollectorProcessor < Processor
          def self.keys
            [:file_collector]
          end

          # Example of how a subclass can implement its specific data logic
          def build_result_data
            {
              files: ['file1.txt', 'file2.txt']
            }
          end

          # Auto-register the processor as soon as the class is loaded
          ProcessorConfigDefault.register_processor(self)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
klue-langcraft-0.4.0 lib/klue/langcraft/dsl/processors/file_collector_processor.rb
klue-langcraft-0.3.0 lib/klue/langcraft/dsl/processors/file_collector_processor.rb
klue-langcraft-0.2.0 lib/klue/langcraft/dsl/processors/file_collector_processor.rb