1 use strict; use warnings;
2 package YAML::Marshall;
10 unless (grep { $_ eq $class} @{$package . '::ISA'}) {
11 push @{$package . '::ISA'}, $class;
17 $YAML::TagClass->{$tag} = $package;
18 ${$package . "::YamlTag"} = $tag;
25 my $tag = ${ref($self) . "::YamlTag"} || 'perl/' . ref($self);
26 $self->yaml_node($self, $tag);
30 my ($class, $node) = @_;
31 if (my $ynode = $class->yaml_ynode($node)) {
32 $node = $ynode->{NODE};
44 YAML::Node::ynode(@_);