aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2017-04-23 21:31:18 +0200
committerPatrick Spek <p.spek@tyil.nl>2017-04-23 21:31:18 +0200
commita5c9ad058898d4467cdc6993a9c1b3b1a096935f (patch)
tree328a326cc926c3a46e9daea253e5e3963ee2d8f9 /lib
Initial commit
Diffstat (limited to 'lib')
-rw-r--r--lib/Config/Parser/yaml.pm614
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/Config/Parser/yaml.pm6 b/lib/Config/Parser/yaml.pm6
new file mode 100644
index 0000000..c0c194e
--- /dev/null
+++ b/lib/Config/Parser/yaml.pm6
@@ -0,0 +1,14 @@
+#! /usr/bin/env false
+
+use v6.c;
+
+use Config::Parser;
+use YAMLish;
+
+class Config::Parser::yaml is Config::Parser
+{
+ method read(Str $path --> Hash)
+ {
+ load-yaml(slurp $path);
+ }
+}