Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision c6bc1816

Von Sven Schöling vor etwa 9 Jahren hinzugefügt

  • ID c6bc181610ac4dd26cfd615075bcc8686dc219cf
  • Vorgänger 778622af
  • Nachfolger e8521020

YAML: Versionsupdate

Unterschiede anzeigen:

modules/override/YAML/Marshall.pm
1
package YAML::Marshall;
2 1
use strict; use warnings;
3
use YAML::Node();
2
package YAML::Marshall;
3

  
4
use YAML::Node ();
4 5

  
5 6
sub import {
6 7
    my $class = shift;
......
11 12
    }
12 13

  
13 14
    my $tag = shift;
14
    if ($tag) {
15
    if ( $tag ) {
15 16
        no warnings 'once';
16 17
        $YAML::TagClass->{$tag} = $package;
17 18
        ${$package . "::YamlTag"} = $tag;
......
44 45
}
45 46

  
46 47
1;
47

  
48
__END__
49

  
50
=head1 NAME
51

  
52
YAML::Marshall - YAML marshalling class you can mixin to your classes
53

  
54
=head1 SYNOPSIS
55

  
56
    package Bar;
57
    use Foo -base;
58
    use YAML::Marshall -mixin;
59

  
60
=head1 DESCRIPTION
61

  
62
For classes that want to handle their own YAML serialization.
63

  
64
=head1 AUTHOR
65

  
66
Ingy döt Net <ingy@cpan.org>
67

  
68
=head1 COPYRIGHT
69

  
70
Copyright (c) 2006. Ingy döt Net. All rights reserved.
71

  
72
This program is free software; you can redistribute it and/or modify it
73
under the same terms as Perl itself.
74

  
75
See L<http://www.perl.com/perl/misc/Artistic.html>
76

  
77
=cut

Auch abrufbar als: Unified diff