Sha256: 4caa68cbb986c855f9e3cdee235626331f40dc09d327ca482a9ad50482aec49f

Contents?: true

Size: 367 Bytes

Versions: 7

Compression:

Stored size: 367 Bytes

Contents

module Hydra::Derivatives
  class FullTextExtract < ImageDerivatives
    # Adds format: 'txt' as the default to each of the directives
    def self.transform_directives(options)
      options.each do |directive|
        directive.reverse_merge!(format: 'txt')
      end
      options
    end

    def self.processor_class
      Processors::FullText
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hydra-derivatives-3.3.2 lib/hydra/derivatives/runners/full_text_extract.rb
hydra-derivatives-3.3.1 lib/hydra/derivatives/runners/full_text_extract.rb
hydra-derivatives-3.3.0 lib/hydra/derivatives/runners/full_text_extract.rb
hydra-derivatives-3.2.2 lib/hydra/derivatives/runners/full_text_extract.rb
hydra-derivatives-3.2.1 lib/hydra/derivatives/runners/full_text_extract.rb
hydra-derivatives-3.2.0 lib/hydra/derivatives/runners/full_text_extract.rb
hydra-derivatives-3.1.4 lib/hydra/derivatives/runners/full_text_extract.rb