2 package Class::MOP::Method;
8 use Scalar::Util 'reftype';
10 our $VERSION = '0.01';
13 require Class::MOP::Class;
14 Class::MOP::Class->initialize($_[0])
21 (reftype($code) && reftype($code) eq 'CODE')
22 || confess "You must supply a CODE reference to wrap";
24 bless $code => $class;
35 Class::MOP::Method - Method Meta Object
41 The Method Protocol is very small, since methods in Perl 5 are just
42 subroutines within the particular package. Basically all we do is to
43 bless the subroutine and provide some very simple introspection
58 Stevan Little E<gt>stevan@iinteractive.comE<lt>
60 =head1 COPYRIGHT AND LICENSE
62 Copyright 2006 by Infinity Interactive, Inc.
64 L<http://www.iinteractive.com>
66 This library is free software; you can redistribute it and/or modify
67 it under the same terms as Perl itself.