From 31dffa70a748fca22f9da2e0404c41b468b57109 Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Thu, 18 Mar 2021 23:56:19 +0100
Subject: Call own methods with self
---
lib/Config.rakumod | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
(limited to 'lib')
diff --git a/lib/Config.rakumod b/lib/Config.rakumod
index cddf256..e896517 100644
--- a/lib/Config.rakumod
+++ b/lib/Config.rakumod
@@ -146,7 +146,7 @@ multi method read (
--> Config:D
) {
- Config.new(
+ self.new(
%!template,
:$!name,
data => merge-hash(%!data.clone, %data),
@@ -252,7 +252,7 @@ multi method set (
$index = $value;
- Config.new(
+ self.new(
%!template,
:$!name,
:%data,
@@ -287,7 +287,7 @@ multi method unset (
$index{@parts[*-1]}:delete;
- Config.new(
+ self.new(
%!template,
:$!name,
:%data,
--
cgit v1.1