| 1 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | package YAML::PP::Schema::Merge; | ||
| 4 | |||
| 5 | 2 | our $VERSION = 'v0.43.0'; # VERSION | |
| 6 | |||
| 7 | 2 | ▶ | use YAML::PP::Type::MergeKey; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | ▶ | sub register { |
|
Subroutine
register: called CC=1 SCAR=0.0
Pod
documented
| |||
| 10 | 1 | my ($self, %args) = @_; | |
| 11 | 1 | my $schema = $args{schema}; | |
| 12 | |||
| 13 | 1 | $schema->add_resolver( | |
| 14 | tag => 'tag:yaml.org,2002:merge', | ||
| 15 | match => [ equals => '<<' => YAML::PP::Type::MergeKey->new ], | ||
| 16 | ); | ||
| 17 | } | ||
| 18 | |||
| 19 | 2 | 1; | |
| 20 | |||
| 21 | __END__ | ||