Class: Giblish::DocIdConfig
- Inherits:
-
Object
- Object
- Giblish::DocIdConfig
- Defined in:
- lib/giblish/config_builders/docid_config_builder.rb
Overview
AIDEV-NOTE: Immutable value object for DocId configuration
Instance Attribute Summary collapse
-
#post_builders ⇒ Array<DependencyGraphPostBuilder>
readonly
Post-build processors.
-
#pre_builders ⇒ Array<DocIdExtension::DocidPreBuilder>
readonly
Pre-build processors.
-
#preprocessors ⇒ Array<DocIdExtension::DocidProcessor>
readonly
Asciidoctor preprocessors.
Instance Method Summary collapse
-
#initialize(pre_builders:, preprocessors:, post_builders:) ⇒ DocIdConfig
constructor
Creates immutable DocId configuration.
Constructor Details
#initialize(pre_builders:, preprocessors:, post_builders:) ⇒ DocIdConfig
Creates immutable DocId configuration.
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_builders ⇒ Array<DependencyGraphPostBuilder> (readonly)
Returns Post-build processors.
14 15 16 |
# File 'lib/giblish/config_builders/docid_config_builder.rb', line 14 def post_builders @post_builders end |
#pre_builders ⇒ Array<DocIdExtension::DocidPreBuilder> (readonly)
Returns Pre-build processors.
8 9 10 |
# File 'lib/giblish/config_builders/docid_config_builder.rb', line 8 def pre_builders @pre_builders end |
#preprocessors ⇒ Array<DocIdExtension::DocidProcessor> (readonly)
Returns Asciidoctor preprocessors.
11 12 13 |
# File 'lib/giblish/config_builders/docid_config_builder.rb', line 11 def preprocessors @preprocessors end |