1YAML::PP::Constructor(3U)ser Contributed Perl DocumentatiYoAnML::PP::Constructor(3)
2
3
4

NAME

6       YAML::PP::Constructor - Constructing data structure from parsing events
7

METHODS

9       new The Constructor constructor
10
11               my $constructor = YAML::PP::Constructor->new(
12                   schema => $schema,
13                   cyclic_refs => $cyclic_refs,
14               );
15
16       init
17           Resets any data being used during construction.
18
19               $constructor->init;
20
21       document_start_event, document_end_event, mapping_start_event,
22       mapping_end_event, sequence_start_event, sequence_end_event,
23       scalar_event, alias_event, stream_start_event, stream_end_event
24           These methods are called from YAML::PP::Parser:
25
26               $constructor->document_start_event($event);
27
28       anchors, set_anchors
29           Helper for storing anchors during construction
30
31       docs, set_docs
32           Helper for storing resulting documents during construction
33
34       stack, set_stack
35           Helper for storing data during construction
36
37       cyclic_refs, set_cyclic_refs
38           Option for controlling the behaviour when finding circular
39           references
40
41       schema, set_schema
42           Holds a YAML::PP::Schema object
43
44       stringify_complex
45           When constructing a hash and getting a non-scalar key, this method
46           is used to stringify the key.
47
48           It uses a terse Data::Dumper output. Other modules, like YAML::XS,
49           use the default stringification, ARRAY(0x55617c0c7398) for example.
50
51
52
53perl v5.38.0                      2023-07-21          YAML::PP::Constructor(3)
Impressum