| 1 | package MARC::Moose::Formater::Yaml; | ||
| 2 | # ABSTRACT: Marc record formater into YAML representation | ||
| 3 | 4 | $MARC::Moose::Formater::Yaml::VERSION = '1.0.46'; | |
| 4 | 4 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 4 | extends 'MARC::Moose::Formater'; | |
| 7 | |||
| 8 | 4 | ▶ | use MARC::Moose::Field::Control; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 4 | ▶ | use MARC::Moose::Field::Std; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 4 | ▶ | use YAML::Syck; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 4 | $YAML::Syck::ImplicitUnicode = 1; | |
| 13 | |||
| 14 | |||
| 15 | override 'format' => sub { | ||
| 16 | 0 | ▶ | my ($self, $record) = @_; |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 17 | |||
| 18 | 0 | return Dump($record); | |
| 19 | 4 | }; | |
| 20 | |||
| 21 | 4 | __PACKAGE__->meta->make_immutable; | |
| 22 | |||
| 23 | 4 | 1; | |
| 24 | |||
| 25 | __END__ | ||
| 26 | |||
| 27 | =pod | ||
| 28 | |||
| 29 | =encoding UTF-8 | ||
| 30 | |||
| 31 | =head1 NAME | ||
| 32 | |||
| 33 | MARC::Moose::Formater::Yaml - Marc record formater into YAML representation | ||
| 34 | |||
| 35 | =head1 VERSION | ||
| 36 | |||
| 37 | version 1.0.46 | ||
| 38 | |||
| 39 | =head1 AUTHOR | ||
| 40 | |||
| 41 | Frédéric Demians <f.demians@tamil.fr> | ||
| 42 | |||
| 43 | =head1 COPYRIGHT AND LICENSE | ||
| 44 | |||
| 45 | This software is copyright (c) 2022 by Frédéric Demians. | ||
| 46 | |||
| 47 | This is free software; you can redistribute it and/or modify it under | ||
| 48 | the same terms as the Perl 5 programming language system itself. | ||
| 49 | |||
| 50 | =cut | ||