aboutsummaryrefslogtreecommitdiff
path: root/lib/Config/Parser.pm6
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2017-04-26 23:08:59 +0200
committerPatrick Spek <p.spek@tyil.nl>2017-04-26 23:08:59 +0200
commited219a26574e05ba27264d73e75e5690e478570f (patch)
treefafb21c1c9db6f543fb213c9d658e5f91f027788 /lib/Config/Parser.pm6
parent845c2d891e12b7abe006aa1e36c1201266b29a51 (diff)
Add Config::Parser::NULL for testcases
Diffstat (limited to 'lib/Config/Parser.pm6')
-rw-r--r--lib/Config/Parser.pm66
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Config/Parser.pm6 b/lib/Config/Parser.pm6
index 1a99ad6..d067513 100644
--- a/lib/Config/Parser.pm6
+++ b/lib/Config/Parser.pm6
@@ -6,6 +6,8 @@ use Config::Exception::UnimplementedMethodException;
class Config::Parser
{
+ #| Attempt to read the file at a given $path, and returns its
+ #| parsed contents as a Hash.
method read(Str $path --> Hash)
{
Config::Exception::UnimplementedMethodException.new(
@@ -13,7 +15,9 @@ class Config::Parser
).throw();
}
- method write(Str $path, Hash $config --> Hash)
+ #| Attempt to write the $config Hash at a given $path. Returns
+ #| True on success, False on failure.
+ method write(Str $path, Hash $config --> Bool)
{
Config::Exception::UnimplementedMethodException.new(
method => "write"