Process::YAML - The Process::Serializable role implemented by YAML


Process-YAML documentation  | view source Contained in the Process-YAML distribution.

Index


NAME

Top

Process::YAML - The Process::Serializable role implemented by YAML

SYNOPSIS

Top

  package MyYAMLProcess;

  use base 'Process::YAML',
           'Process';

  sub prepare {
      ...
  }

  sub run {
      ...
  }

  1;

DESCRIPTION

Top

Process::YAML provides an implementation of the Process::Serializable role using the YAML::Syck module from CPAN. It is not itself a subclass of Process so you will need to inherit from both.

Objects that inherit from Process::YAML must follow the new, prepare, run rules of Process::Serializable.

YAML::Syck was chosen over YAML because YAML::Syck is much faster. Furthermore, YAML uses Spiffy which I could not get to play well with the inheritance scheme of the Process framework at the time (Spiffy 0.26). By now, Brian Ingerson has released a fixed version of Spiffy (0.27), so YAML 0.52 and higher is compatible with Process::YAML.

METHODS

Using this class as an additional base class for your Process based classes will add two methods to your class as defined by the Process::Serializable documentation. Please refer to that module for a description of the interface.

serialize
deserialize

SUPPORT

Top

Bugs should be reported via the CPAN bug tracker at

http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Process-YAML

For other issues, contact the author.

AUTHOR

Top

Steffen Mueller <modules at steffen-mueller dot net>, http://steffen-mueller.net/

COPYRIGHT

Top


Process-YAML documentation  | view source Contained in the Process-YAML distribution.