From a5c9ad058898d4467cdc6993a9c1b3b1a096935f Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Sun, 23 Apr 2017 21:31:18 +0200
Subject: Initial commit
---
lib/Config/Parser/yaml.pm6 | 14 ++++++++++++++
1 file changed, 14 insertions(+)
create mode 100644 lib/Config/Parser/yaml.pm6
(limited to 'lib/Config/Parser/yaml.pm6')
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);
+ }
+}
--
cgit v1.1