class CrConfig::Providers::YamlProvider

Overview

Converts a YAML string into configuration values that can be used

Defined in:

cr-config/abstract_provider.cr

Constructors

Instance Method Summary

Instance methods inherited from class CrConfig::Providers::AbstractProvider

populate(builder : AbstractBuilder) populate

Constructor Detail

def self.new(yaml_source : String, file_source : String | Nil = nil) #

Construct this with the YAML string that will be parsed and used in the populate method


[View source]

Instance Method Detail

def populate(builder : AbstractBuilder) #
Description copied from class CrConfig::Providers::AbstractProvider

This method gets called with the instance of the configuration builder during config building.

Use this method to populate the builder with any configuration name / values that this provider... provides


[View source]