aboutsummaryrefslogtreecommitdiff
path: root/lib/Config/Parser.rakumod
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Config/Parser.rakumod')
-rw-r--r--lib/Config/Parser.rakumod13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Config/Parser.rakumod b/lib/Config/Parser.rakumod
new file mode 100644
index 0000000..5d0343b
--- /dev/null
+++ b/lib/Config/Parser.rakumod
@@ -0,0 +1,13 @@
+#! /usr/bin/env false
+
+use v6.d;
+
+unit class Config::Parser;
+
+#| Attempt to read the file at a given $path, and returns its
+#| parsed contents as a Hash.
+method read(IO() $path --> Hash) { … }
+
+#| Attempt to write the $config Hash at a given $path. Returns
+#| True on success, False on failure.
+method write(IO() $path, Hash $config --> Bool) { … }