diff options
author | Patrick Spek <p.spek@tyil.nl> | 2017-04-26 08:18:45 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2017-04-26 08:18:45 +0200 |
commit | 070e5a9e406fee7eeeb48481a048e79fb4d531a6 (patch) | |
tree | a6b4ae7bb37f25757487c4f304546a5c648b73ff /lib/Config.pm6 | |
parent | fb014751bbcf785b4e43b9f622ab8114d496be09 (diff) |
Add a get without params to get the entire config hash
Diffstat (limited to 'lib/Config.pm6')
-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) |