class ContainerConfig::Provider::Default

Default config value provider (handles :default option)

Public Instance Methods

load(key, *dig_keys, **options) click to toggle source

Loads a default configuration setting based on the value of options

@param [String] key Configuration key to load @param [Array] dig_keys Variable keys to use to load from providers that accept a dig structure @param [Hash] options Options Hash @option options [String] :default default value if the configuration setting cannot be found

@return [Object] configuration setting value

Calls superclass method ContainerConfig::Provider::Base#load
# File lib/container_config/provider/default.rb, line 24
def load(key, *dig_keys, **options)
  super
  options[:default]
end
name() click to toggle source

@see ContainerConfig::Provider::Base#name

# File lib/container_config/provider/default.rb, line 10
def name
  "Default Value"
end