blob: d06751377c1bad4fc91e83910ddee5eb32b962ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#! /usr/bin/env false
use v6.c;
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(
method => "read"
).throw();
}
#| 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"
).throw();
}
}
|