diff options
author | Patrick Spek <p.spek@tyil.nl> | 2017-04-26 08:18:45 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2023-07-25 02:16:15 +0200 |
commit | 45852b972dab118affc2cdd686ec40dffade0d31 (patch) | |
tree | a6b4ae7bb37f25757487c4f304546a5c648b73ff /lib | |
parent | 5a1e1bd45face0ace9506629e8ef1b1538f4eba7 (diff) |
Add a get without params to get the entire config hash
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Config.pm6 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Config.pm6 b/lib/Config.pm6 index ae78ea1..b9bc582 100644 --- a/lib/Config.pm6 +++ b/lib/Config.pm6 @@ -24,6 +24,12 @@ class Config is export $!parser = ""; } + #| Return the entire config hash. + multi method get() + { + return $!content; + } + #| Get a value from the config object. To get a nested #| key, use a . to descent a level. multi method get(Str $key, Any $default = Nil) |