NAME
Process::YAML - The Process::Serializable role implemented by YAML
SYNOPSIS
package MyYAMLProcess;
use base 'Process::YAML',
'Process';
sub prepare {
...
}
sub run {
...
}
1;
DESCRIPTION
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
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
Steffen Mueller <modules at steffen-mueller dot net>, http://steffen-mueller.net/
COPYRIGHT
Copyright 2006 Steffen Mueller. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.