From 070e5a9e406fee7eeeb48481a048e79fb4d531a6 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Wed, 26 Apr 2017 08:18:45 +0200 Subject: Add a get without params to get the entire config hash --- lib/Config.pm6 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib') 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) -- cgit v1.1