aboutsummaryrefslogtreecommitdiff
path: root/lib/Config.pm6
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Config.pm6')
-rw-r--r--lib/Config.pm67
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Config.pm6 b/lib/Config.pm6
index 372eb3b..d07c640 100644
--- a/lib/Config.pm6
+++ b/lib/Config.pm6
@@ -16,6 +16,13 @@ class Config is export
has $!path;
has $!parser;
+ method clear()
+ {
+ $!content = {};
+ $!path = "";
+ $!parser = "";
+ }
+
multi method get(Str $key, Any $default = Nil)
{
my $index = $!content;