Module: Kiba::Extend::ProjectConfig
- Extended by:
- Dry::Configurable
- Defined in:
- lib/kiba/extend/project_config.rb
Overview
Project-specific configuration settings.
All of these are optional. Ideally some of the project-specific settings from Kiba::Extend would be moved here.
Class Method Summary collapse
-
.global_reversible_replacements ⇒ Hash{Regexp=>Hash}
Configuration for making and reversing global replacements in your project via the Transforms::Replace::GlobalReversible and Transforms::Replace::GlobalReverse transforms.
-
.graph_dir ⇒ String, NilClass
Path to directory in which Mermaid .mmd files and generated image files will be stored.
Class Method Details
.global_reversible_replacements ⇒ Hash{Regexp=>Hash}
The :replace values should always be Strings that do not
naturally appear in the data, otherwise the reverse replace will
mess up the data.
Configuration for making and reversing global replacements in your project via the Transforms::Replace::GlobalReversible and Transforms::Replace::GlobalReverse transforms.
The most common use for this setting is removing formatting or
special characters from data values to avoid them complicating
the internal data processing. The :replace values are
reversed to normal values in client-facing worksheets and reports,
and in final data prepared for ingest
44 45 46 |
# File 'lib/kiba/extend/project_config.rb', line 44 setting :global_reversible_replacements, reader: true, default: {} |
.graph_dir ⇒ String, NilClass
Path to directory in which Mermaid .mmd files and generated image files will be stored. If not populated,
17 |
# File 'lib/kiba/extend/project_config.rb', line 17 setting :graph_dir, reader: true, default: nil |