~tyil/raku-config

eda41a0ce3ac8cd5ad41791c5d5641c72f7b4bb1 — Patrick Spek 6 months ago 280463e
Call own methods with self
2 files changed, 11 insertions(+), 3 deletions(-)

M CHANGELOG.md
M lib/Config.rakumod
M CHANGELOG.md => CHANGELOG.md +8 -0
@@ 5,6 5,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic
Versioning](http://semver.org/spec/v2.0.0.html).

## [UNRELEASED]

### Changed

- Methods now use `self` to call `Config` itself, instead of hardcoding to
  `Config`. This allows for inheritance with the `Config` class, without
  breaking its core functionality.

## [3.0.3] - 2020-11-16

Due to a user error, version 3.0.2 has been skipped.

M lib/Config.rakumod => lib/Config.rakumod +3 -3
@@ 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,