17 Dec 2009 07:27:04 UTC
- Development release
- Distribution: KinoSearch
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (5)
- Testers (41 / 0 / 8)
- KwaliteeBus factor: 0
- License: perl_5
- Activity24 month
- Download (810.65KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionCREAMYG Marvin Humphreyand 1 contributors
- Marvin Humphrey <marvin at rectangular dot com>
- CLASS METHODS
- OBJECT METHODS
- COPYRIGHT AND LICENSE
Boilerplater::Parcel - Collection of code.
A Parcel is a cohesive collection of code, which could, in theory, be published as as a single entity.
Boilerplater supports two-tier manual namespacing, using a prefix, an optional class nickname, and the local symbol:
Boilerplater::Parcel supports the first tier, specifying initial prefixes. These prefixes come in three capitalization variants: prefix_, Prefix_, and PREFIX_.
Boilerplater::Parcel->singleton( name => 'Crustacean', cnick => 'Crust', );
Add a Parcel singleton to a global registry. May be called multiple times, but only with compatible arguments.
name - The name of the parcel.
cnick - The C nickname for the parcel, which will be used as a prefix for generated global symbols. Must be mixed case and start with a capital letter. Defaults to
$parcel ||= Boilerplater::Parcel->default_parcel;
Return the singleton for default parcel, which has no prefix.
Return one of the three capitalization variants for the parcel's prefix.
Copyright 2006-2009 Marvin Humphrey
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.