diff options
author | Patrick Spek <p.spek@tyil.nl> | 2017-04-23 21:31:18 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2017-04-23 21:31:18 +0200 |
commit | a5c9ad058898d4467cdc6993a9c1b3b1a096935f (patch) | |
tree | 328a326cc926c3a46e9daea253e5e3963ee2d8f9 /lib/Config/Parser |
Initial commit
Diffstat (limited to 'lib/Config/Parser')
-rw-r--r-- | lib/Config/Parser/yaml.pm6 | 14 |
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); + } +} |