1 package YAML::Loader::Base;
8 our @ISA = 'YAML::Base';
14 field documents => [];
18 field anchor2node => {};
24 field major_version => 0;
25 field minor_version => 0;
28 sub set_global_options {
30 $self->load_code($YAML::LoadCode || $YAML::UseCode)
31 if defined $YAML::LoadCode or defined $YAML::UseCode;
35 die 'load() not implemented in this class.';
44 YAML::Loader::Base - Base class for YAML Loader classes
48 package YAML::Loader::Something;
49 use YAML::Loader::Base -base;
53 YAML::Loader::Base is a base class for creating YAML loader classes.
57 Ingy döt Net <ingy@cpan.org>
61 Copyright (c) 2006. Ingy döt Net. All rights reserved.
63 This program is free software; you can redistribute it and/or modify it
64 under the same terms as Perl itself.
66 See L<http://www.perl.com/perl/misc/Artistic.html>