Class: Giblish::DocIdConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/giblish/config_builders/docid_config_builder.rb

Overview

AIDEV-NOTE: Immutable value object for DocId configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pre_builders:, preprocessors:, post_builders:) ⇒ DocIdConfig

Creates immutable DocId configuration.

Parameters:



21
22
23
24
25
26
# File 'lib/giblish/config_builders/docid_config_builder.rb', line 21

def initialize(pre_builders:, preprocessors:, post_builders:)
  @pre_builders = pre_builders.freeze
  @preprocessors = preprocessors.freeze
  @post_builders = post_builders.freeze
  freeze
end

Instance Attribute Details

#post_buildersArray<DependencyGraphPostBuilder> (readonly)

Returns Post-build processors.

Returns:



14
15
16
# File 'lib/giblish/config_builders/docid_config_builder.rb', line 14

def post_builders
  @post_builders
end

#pre_buildersArray<DocIdExtension::DocidPreBuilder> (readonly)

Returns Pre-build processors.

Returns:



8
9
10
# File 'lib/giblish/config_builders/docid_config_builder.rb', line 8

def pre_builders
  @pre_builders
end

#preprocessorsArray<DocIdExtension::DocidProcessor> (readonly)

Returns Asciidoctor preprocessors.

Returns:



11
12
13
# File 'lib/giblish/config_builders/docid_config_builder.rb', line 11

def preprocessors
  @preprocessors
end