|
NAMEClass::Inner - A perlish implementation of Java like inner classesSYNOPSISuse Class::Inner; my $object = Class::Inner->new( parent => 'ParentClass', methods => { method => sub { ... } }, }, constructor => 'new', args => [@constructor_args], ); DESCRIPTIONYet another implementation of an anonymous class with per object overrideable methods, but with the added attraction of sort of working dispatch to the parent class's method.METHODS
Returns an object in an 'anonymous' class which inherits from the parent class. This anonymous class has a couple of 'extra' methods:
AUTHORMaintained by Arun Prasaad "<arunbear@cpan.org>"Copyright (c) 2001 by Piers Cawley <pdcawley@iterative-software.com>. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as perl itself. Thanks to the Iterative Software people: Leon Brocard, Natalie Ford and Dave Cross. Also, this module was written initially for use in the PerlUnit project, AKA Test::Unit. Kudos to Christian Lemburg and the rest of that team. SEE ALSOThere are a million and one differen Class constructors available on CPAN, none of them does quite what I want, so I wrote this one to add to that population where hopefully it will live and thrive.BUGSBound to be some. Actually the "SUPER" method is a workaround for what I consider to be a bug in perl.
Visit the GSP FreeBSD Man Page Interface. |