From fda4ed37d5aa07c5be40c5b5ebe332f19f57c30d Mon Sep 17 00:00:00 2001 From: Mikko Johannes Koivunalho Date: Thu, 12 May 2022 19:47:05 +0200 Subject: [PATCH] Fix documentation in Role::ConfigReader Signed-off-by: Mikko Johannes Koivunalho --- lib/Dancer2/Core/Role/ConfigReader.pm | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/Dancer2/Core/Role/ConfigReader.pm b/lib/Dancer2/Core/Role/ConfigReader.pm index b63fe1fa6..cfc3c529c 100644 --- a/lib/Dancer2/Core/Role/ConfigReader.pm +++ b/lib/Dancer2/Core/Role/ConfigReader.pm @@ -79,13 +79,19 @@ during creation: The name of the environment used, e.g. production, development, staging. -==attr location +=attr location -Absolute path to the directory where the server started. +The absolute path to the directory where the server started. + +=attr default_config + +A hash ref which contains the default values. These arguments are passed when the object is created by -C. How the config -reader applies them as it needs. +C. +ConfigReader then passes C and C forward to every +config reader class when it instantiates them. +How the config reader applies them, depend on its needs. Provides a C attribute that - when accessing the first time - feeds itself by finding and parsing