-
-
16 Apr 2012 21:20:13 UTC
- Distribution: KinoSearch
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (5)
- Testers (536 / 133 / 8)
- Kwalitee
Bus factor: 0- 85.27% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (852.87KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors- Marvin Humphrey <marvin at rectangular dot com>
- Dependencies
- JSON::XS
- Lingua::Stem::Snowball
- Lingua::StopWords
- Parse::RecDescent
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Clownfish::Dumpable - Auto-generate code for "dumpable" classes.
SYNOPSIS
my $dumpable = Clownfish::Dumpable->new; for my $class ( grep { $_->has_attribute('dumpable') } @classes ) { $dumpable->add_dumpables($class); }
DESCRIPTION
If a class declares that it has the attribute "dumpable", but does not declare either Dump or Load(), Clownfish::Dumpable will attempt to auto-generate those methods if methods inherited from the parent class do not suffice.
class Foo::Bar inherits Foo : dumpable { Thing *thing; public inert incremented Bar* new(); void Destroy(Bar *self); }
METHODS
new
my $dumpable = Clownfish::Dumpable->new;
Constructor. Takes no arguments.
add_dumpables
$dumpable->add_dumpables($dumpable_class);
Analyze a class with the attribute "dumpable" and add Dump() or Load() methods as necessary.
COPYRIGHT AND LICENSE
Copyright 2006-2011 Marvin Humphrey
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install KSx::Simple, copy and paste the appropriate command in to your terminal.
cpanm KSx::Simple
perl -MCPAN -e shell install KSx::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.