perlancar

NAME

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

VERSION

This document describes version 0.02 of Data::Format::Pretty::Ruby (from Perl distribution Data-Format-Pretty-Ruby), released on 2015-02-11.

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

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Data-Format-Pretty-Ruby.

SOURCE

Source repository is at https://github.com/perlancar/perl-Data-Format-Pretty-Ruby.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Data-Format-Pretty-Ruby

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by perlancar@cpan.org.

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