NAME
Exporter::Declare::Export::Generator - Export class for exports that should be generated when imported.
DESCRIPTION
Export class for exports that should be generated when imported.
OVERRIDEN METHODS
- $class->new( $ref, $ref, exported_by => $package, type => $type, %data )
-
You must specify the type as 'sub' or 'variable'.
- $export->inject( $package, $name, @args )
-
Calls generate() with @args to create a generated export. The new export is then injected.
ADDITIONAL METHODS
- $new = $export->generate( $import_class, @args )
-
Generates a new export object.
- $type = $export->type()
-
Returns the type of object to be generated (sub or variable)
AUTHORS
Chad Granum exodist7@gmail.com
COPYRIGHT
Copyright (C) 2010 Chad Granum
Exporter-Declare is free software; Standard perl licence.
Exporter-Declare is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.