Sha256: af44be6b6ab26e10cf51115cc27502a9d5cda5ab50124516635a688cc238edfa

Contents?: true

Size: 452 Bytes

Versions: 1

Compression:

Stored size: 452 Bytes

Contents

# frozen_string_literal: true

module Asciidoctor::Reducer
  module HeaderAttributeTracker
    def self.extended instance
      instance.singleton_class.send :attr_reader, :source_header_attributes
    end

    def finalize_header(*) # rubocop:disable Style/MethodDefParentheses
      @source_header_attributes = @attributes_modified.each_with_object({}) do |name, accum|
        accum[name] = @attributes[name]
      end
      super
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asciidoctor-reducer-1.1.0 lib/asciidoctor/reducer/header_attribute_tracker.rb