Exporter::Declare::Meta - The meta object which stores meta-data for all exporters.
All classes that use Exporter::Declare have an associated Meta object. Meta objects track available exports, tags, and options.
Created a meta object for the specified package. Also injects the export_meta() sub into the package namespace that returns the generated meta object.
Create a meta object for a package that already uses Exporter.pm. This will not turn the class into an Exporter::Declare package, but it will create a meta object and export_meta() method on it. This si primarily used for reexport purposes.
Get the name of the package with which the meta object is associated.
Usually called at construction to add a package alias function to the exports.
Add an export, name should be the item name with sigil (assumed to be sub if there is no sigil). $ref should be a ref blessed as an Exporter::Declare::Export subclass.
Retrieve the Exporter::Declare::Export object by name. Name should be the item name with sigil, assumed to be sub when sigil is missing.
Add @items to the specified tag. Tag will be created if it does not already exist. $name should be the tag name WITHOUT -/: prefix.
Get the list of items associated with the specified tag. $name should be the tag name WITHOUT -/: prefix.
Get a list of all export tags.
Check if a tag with the given name exists. $name should be the tag name WITHOUT -/: prefix.
Add import options by name. These will be boolean options that take no arguments.
Add import options that slurp in the next argument as a value.
Check if the specified name is an option.
Check if the specified name is an option that takes an argument.
Add a parser sub that should be associated with exports via Devel::Declare
Get a parser by name.
Returns a reference to a specific package variable or sub.
Re-export the exports in the provided package. Package may be an Exporter::Declare based package or an Exporter based package.
Merge-in the exports and tags of the second meta object.
Chad Granum email@example.com
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.
To install Exporter::Declare, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.