logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Sisimai::Data::YAML - Dumps parsed data object as a YAML format

Author

       azumakuniyuki

Class Methods

"dump(Sisimai::Data)"
       "dump" method returns Sisimai::Data object as a YAML formatted string.

           my $mail = Sisimai::Mail->new('/var/mail/root');
           while( my $r = $mail->read ) {
               my $mesg = Sisimai::Message->new('data' => $r);
               my $data = Sisimai::Data->make('data' => $mesg);
               for my $e ( @$data ) {
                   print $e->dump('yaml');
               }
           }

Description

       Sisimai::Data::YAML dumps parsed data object as a YAML format. This class and method should be called
       from the parent object "Sisimai::Data".

License

       This software is distributed under The BSD 2-Clause License.

perl v5.32.1                                       2021-11-25                           Sisimai::Data::YAML(3pm)

Name

       Sisimai::Data::YAML - Dumps parsed data object as a YAML format

Synopsis

           use Sisimai::Data;
           my $data = Sisimai::Data->make('data' => <Sisimai::Message> object);
           for my $e ( @$data ) {
               print $e->dump('yaml');
           }

See Also