| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | #!perl | 
| 2 |  |  |  |  |  |  | #PODNAME: Raisin::Encoder::YAML | 
| 3 |  |  |  |  |  |  | #ABSTRACT: YAML serialization plugin for Raisin. | 
| 4 |  |  |  |  |  |  |  | 
| 5 | 6 |  |  | 6 |  | 2977 | use strict; | 
|  | 6 |  |  |  |  | 14 |  | 
|  | 6 |  |  |  |  | 190 |  | 
| 6 | 6 |  |  | 6 |  | 30 | use warnings; | 
|  | 6 |  |  |  |  | 10 |  | 
|  | 6 |  |  |  |  | 329 |  | 
| 7 |  |  |  |  |  |  |  | 
| 8 |  |  |  |  |  |  | package Raisin::Encoder::YAML; | 
| 9 |  |  |  |  |  |  | $Raisin::Encoder::YAML::VERSION = '0.92'; | 
| 10 | 6 |  |  | 6 |  | 37 | use Encode qw(encode_utf8 decode_utf8); | 
|  | 6 |  |  |  |  | 14 |  | 
|  | 6 |  |  |  |  | 459 |  | 
| 11 | 6 |  |  | 6 |  | 547 | use YAML qw(Dump Load); | 
|  | 6 |  |  |  |  | 7436 |  | 
|  | 6 |  |  |  |  | 1097 |  | 
| 12 |  |  |  |  |  |  |  | 
| 13 | 60 |  |  | 60 | 0 | 288 | sub detectable_by { [qw(application/x-yaml application/yaml text/x-yaml text/yaml yaml)] } | 
| 14 | 26 |  |  | 26 | 0 | 597 | sub content_type { 'application/x-yaml' } | 
| 15 | 26 |  |  | 26 | 0 | 180 | sub serialize { encode_utf8( Dump($_[1]) ) } | 
| 16 | 8 |  |  | 8 | 0 | 367 | sub deserialize { Load( decode_utf8($_[1]) ) } | 
| 17 |  |  |  |  |  |  |  | 
| 18 |  |  |  |  |  |  | 1; | 
| 19 |  |  |  |  |  |  |  | 
| 20 |  |  |  |  |  |  | __END__ |