Sha256: d52326ce7c450c5a9758c7668365889f9f4e2426a0b67928bac718707b4f8ed5

Contents?: true

Size: 573 Bytes

Versions: 3

Compression:

Stored size: 573 Bytes

Contents

# Copyright (c) 2020 Jerome Arbez-Gindre
# frozen_string_literal: true

module DefMastership
  # Update definition checksum wih calculated one
  class UpdateDefChecksumModifier < ModifierBase
    def replacements
      %i[replace]
    end

    def new_line_modifier(config, adoc_texts)
      document = Document.new
      adoc_texts.each do |adoc_file, _|
        document.parse_file_with_preprocessor(adoc_file)
      end
      line_modifier = UpdateDefChecksumLineModifier.from_config(config)
      line_modifier.document = document
      line_modifier
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
defmastership-1.0.9 lib/defmastership/update_def_checksum_modifier.rb
defmastership-1.0.8 lib/defmastership/update_def_checksum_modifier.rb
defmastership-1.0.7 lib/defmastership/update_def_checksum_modifier.rb