| Class-MOP documentation | Contained in the Class-MOP distribution. |
Class::MOP::Mixin - Base class for mixin classes
This class provides a single method shared by all mixins
This class provides a few methods which are useful in all metaclasses.
This returns a Class::MOP::Class object for the mixin class.
Dave Rolsky <autarch@urth.org>
Copyright 2006-2010 by Infinity Interactive, Inc.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Class-MOP documentation | Contained in the Class-MOP distribution. |
package Class::MOP::Mixin; use strict; use warnings; our $VERSION = '1.12'; $VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; use Scalar::Util 'blessed'; sub meta { require Class::MOP::Class; Class::MOP::Class->initialize( blessed( $_[0] ) || $_[0] ); } 1; __END__