Data::Format::Pretty::Ruby - Pretty-print data structure as Ruby code
version 0.01
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 }
This module uses Data::Dump::Ruby to encode data as Ruby code.
Return formatted data structure. Currently there are no known formatting options.
Data::Format::Pretty
Steven Haryanto <stevenharyanto@gmail.com>
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:
You forgot a '=back' before '=head1'
To install Data::Format::Pretty::Ruby, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Format::Pretty::Ruby
CPAN shell
perl -MCPAN -e shell install Data::Format::Pretty::Ruby
For more information on module installation, please visit the detailed CPAN module installation guide.