aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2017-04-23 21:53:18 +0200
committerPatrick Spek <p.spek@tyil.nl>2017-04-23 21:53:18 +0200
commitfcb645ce25c654561b53d039e1e1bbf6d91de9d6 (patch)
tree183d6970b2450bef582f4146f6cf0c3e893f4b97
parent30e80844a137921fba9ec398983c617e948eece7 (diff)
Remove the \? in some method signaturesv1.0.0
-rw-r--r--lib/Config.pm68
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Config.pm6 b/lib/Config.pm6
index abf2b44..16aa7f7 100644
--- a/lib/Config.pm6
+++ b/lib/Config.pm6
@@ -19,7 +19,7 @@ class Config is export
return self.load($!path);
}
- multi method read(Str $path, Str $parser? = "")
+ multi method read(Str $path, Str $parser = "")
{
Config::Exception::FileNotFoundException.new.throw() unless $path.IO.f;
@@ -36,7 +36,7 @@ class Config is export
$!content = $hash;
}
- method write(Str $path, Str $parser? = "")
+ method write(Str $path, Str $parser = "")
{
$parser = self.get-parser($path, $parser);
@@ -57,7 +57,7 @@ class Config is export
$index;
}
- multi method get(@keyparts, Any $default? = Nil)
+ multi method get(@keyparts, Any $default = Nil)
{
my $index = $!content;
@@ -97,7 +97,7 @@ class Config is export
self;
}
- method get-parser(Str $path, Str $parser? = "")
+ method get-parser(Str $path, Str $parser = "")
{
if ($parser ne "") {
return $parser;