Module::Generate::YAML - Assisting with module generation via YAML.
Version 0.02
use Module::Generate::YAML qw/generate/; generate('/path/to/file.yml');
This module exports a single method generate which accepts a file path that is a distribution specification in yaml format.
generate('/path/to/file.yml')
# planes.yml --- author: LNATION classes: Planes: abstract: Over my head. accessors: - airline begin: |- { $type = 'boeing'; } our: $type subs: - type - code: sub { $type } example: $plane->type pod: Returns the type of plane. - altitude - code: |- { $_[1] / $_[2]; } example: $plane->altitude(100, 100) pod: Discover the altitude of the plane. dist: Planes email: email@lnation.org version: '0.01' # command line perl -MModule::Generate::YAML=all -e "generate('planes.yml')"
LNATION, <email at lnation.org>
<email at lnation.org>
Please report any bugs or feature requests to bug-module-generate-yaml at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Module-Generate-YAML. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-module-generate-yaml at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Module::Generate::YAML
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
https://rt.cpan.org/NoAuth/Bugs.html?Dist=Module-Generate-YAML
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Module-Generate-YAML
CPAN Ratings
https://cpanratings.perl.org/d/Module-Generate-YAML
Search CPAN
https://metacpan.org/release/Module-Generate-YAML
This software is Copyright (c) 2020 by LNATION.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install Module::Generate::YAML, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Module::Generate::YAML
CPAN shell
perl -MCPAN -e shell install Module::Generate::YAML
For more information on module installation, please visit the detailed CPAN module installation guide.