diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Config.pm6 | 7 |
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; |