The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Data::Format::Pretty::Ruby - Pretty-print data structure as Ruby code

VERSION

version 0.01

SYNOPSIS

 use Data::Format::Pretty::Ruby qw(format_pretty);
 print format_pretty($data);

Some example output:

  • format_pretty({a=>1, b=>2})

     { "a" => 1, "b" => 2 }

DESCRIPTION

This module uses Data::Dump::Ruby to encode data as Ruby code.

FUNCTIONS

format_pretty($data, \%opts)

Return formatted data structure. Currently there are no known formatting options.

SEE ALSO

Data::Format::Pretty

AUTHOR

Steven Haryanto <stevenharyanto@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Steven Haryanto.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 48:

You forgot a '=back' before '=head1'