Browse files

more documentation updates

  • Loading branch information...
1 parent 67f2b4b commit b4ffabc0f26f7d301a44037102a398b281e57444 @perlpilot perlpilot committed Jun 27, 2012
Showing with 45 additions and 5 deletions.
  1. +3 −3 TODO-Documentation
  2. +4 −2 lib/Dancer/Serializer/Dumper.pm
  3. +38 −0 lib/Dancer/Serializer/JSON.pm
View
6 TODO-Documentation
@@ -53,9 +53,9 @@ developers. There are 3 levels of documentation:
[r] Dancer::Moo::Types
[ ] Dancer::Core
[r] Dancer::Plugin::Ajax
-[ ] Dancer::Serializer::JSON
-[ ] Dancer::Serializer::YAML
-[ ] Dancer::Serializer::Dumper
+[r] Dancer::Serializer::JSON
+[r] Dancer::Serializer::YAML
+[r] Dancer::Serializer::Dumper
[ ] Dancer::Factory::Engine
[ ] Dancer::Test
View
6 lib/Dancer/Serializer/Dumper.pm
@@ -57,15 +57,17 @@ Dancer::Serializer::Dumper - serializer for handling Dumper data
=head1 DESCRIPTION
+Turn Perl data structures into L<Data::Dumper> output and vice-versa.
+
=head1 METHODS
=head2 serialize
-Serialize a data structure to a Dumper structure.
+Serialize a Perl data structure into a Dumper string.
=head2 deserialize
-Deserialize a Dumper structure to a data structure
+Deserialize a Dumper string into a Perl data structure
=head2 content_type
View
38 lib/Dancer/Serializer/JSON.pm
@@ -49,3 +49,41 @@ sub deserialize {
sub content_type {'application/json'}
1;
+
+__END__
+
+=pod
+
+=head1 NAME
+
+Dancer::Serializer::JSON --
+
+=head1 SYNOPSIS
+
+=head1 DESCRIPTION
+
+Turn Perl data structures into JSON output and vice-versa.
+
+=head1 METHODS
+
+=head2 serialize
+
+Serialize a Perl data structure into a JSON string.
+
+=head2 deserialize
+
+Deserialize a JSON string into a Perl data structure
+
+=head2 content_type
+
+return 'application/json'
+
+=head1 AUTHOR
+
+
+=head1 COPYRIGHT
+
+Copyright (c) 2012
+
+=cut
+

0 comments on commit b4ffabc

Please sign in to comment.