class CrConfig::Providers::ProcProvider

Overview

Provider class that wraps a Proc(AbstractBuilder, Nil)

This class is used to store the block that gets passed in through the MyConfig.provider method

Defined in:

cr-config/abstract_provider.cr

Instance Method Summary

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

populate(builder : AbstractBuilder) populate

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]