[libcatmandu-perl] 33/46: Fixing the POD to use the correct examples

Jonas Smedegaard dr at jones.dk
Tue Oct 14 13:52:54 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag 0.9205
in repository libcatmandu-perl.

commit cc44888e71f9b34919e62488efcd3199cc5c4017
Author: Patrick Hochstenbach <patrick.hochstenbach at ugent.be>
Date:   Fri Sep 26 13:54:08 2014 +0200

    Fixing the POD to use the correct examples
---
 lib/Catmandu/Serializer.pm | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

diff --git a/lib/Catmandu/Serializer.pm b/lib/Catmandu/Serializer.pm
index c925cae..75a23e4 100644
--- a/lib/Catmandu/Serializer.pm
+++ b/lib/Catmandu/Serializer.pm
@@ -65,7 +65,7 @@ Catmandu::Serializer - Base class for all Catmandu Serializers
     my $perl   = $pkg->deserialize($string);
 
     # Using Catmandu::Serializer::Foo 
-    my $pkg = MyPackage->new( serialize => 'Foo' );
+    my $pkg = MyPackage->new( serialization_format => 'Foo' );
 
     my $string = $pkg->serialize({ foo => 'bar' });
     my $perl   = $pkg->deserialize($string);
@@ -76,6 +76,26 @@ This is a convience class to send Perl hashes easily over the wire without havin
 instantiate a L<Catmandu::Importer> and L<Catmandu::Exporter> which are more suited for
 processing IO streams.
 
+=head1 ATTRIBUTES
+
+=head1 serialization_format
+
+The name of the package that serializes data.
+
+=head1 serializer
+
+An instance of the package that serializes.
+
+=head1 METHODS
+
+=head2 serialize($perl)
+
+Serialize a perl data structure into a string.
+
+=head2 deserialize($bytes)
+
+Deserialize bytes into a perl data structure.
+
 =head1 SEE ALSO
 
 L<Catmandu::Store::DBI>, 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcatmandu-perl.git



More information about the Pkg-perl-cvs-commits mailing list