NAME

Module::Generate::YAML - Assisting with module generation via YAML.

VERSION

Version 0.02

SYNOPSIS

use Module::Generate::YAML qw/generate/;

generate('/path/to/file.yml');	

EXPORT

generate

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')

EXAMPLE

# 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')"

AUTHOR

LNATION, <email at lnation.org>

BUGS

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.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Module::Generate::YAML

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

This software is Copyright (c) 2020 by LNATION.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)