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::Fact::YAML - Dumps decoded data object as a YAML format

Author

       azumakuniyuki

Class Methods

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

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

Description

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

License

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

perl v5.40.1                                       2025-04-12                           Sisimai::Fact::YAML(3pm)

Name

       Sisimai::Fact::YAML - Dumps decoded data object as a YAML format

Synopsis

           use Sisimai::Fact;
           my $fact = Sisimai::Fact->rise('data' => 'Entire email text');
           for my $e ( @$fact ) {
               print $e->dump('yaml');
           }

See Also