aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2017-04-26 08:18:45 +0200
committerPatrick Spek <p.spek@tyil.nl>2017-04-26 08:18:45 +0200
commit070e5a9e406fee7eeeb48481a048e79fb4d531a6 (patch)
treea6b4ae7bb37f25757487c4f304546a5c648b73ff
parentfb014751bbcf785b4e43b9f622ab8114d496be09 (diff)
Add a get without params to get the entire config hash
-rw-r--r--lib/Config.pm66
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)