class ComplexConfig::Provider

def apply_plugins(setting, id)

Returns:
  • (Object, nil) - The result from the first applicable plugin, or nil

Parameters:
  • id (Object) -- The identifier used when executing plugins
  • setting (ComplexConfig::Settings) -- The settings object to apply
def apply_plugins(setting, id)
  plugins.find do |plugin|
    catch :skip do
      value = setting.instance_exec(id, &plugin) and return value
    end
    nil
  end
end