2 package Class::MOP::Method;
8 use Scalar::Util 'reftype', 'blessed';
10 our $VERSION = '0.01';
13 require Class::MOP::Class;
14 Class::MOP::Class->initialize(blessed($_[0]) || $_[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
39 # ... more to come later maybe
43 The Method Protocol is very small, since methods in Perl 5 are just
44 subroutines within the particular package. Basically all we do is to
47 Currently this package is largely unused. Future plans are to provide
48 some very simple introspection methods for the methods themselves.
49 Suggestions for this are welcome.
57 This simply blesses the C<&code> reference passed to it.
61 This will return a B<Class::MOP::Class> instance which is related
68 Stevan Little E<lt>stevan@iinteractive.comE<gt>
70 =head1 COPYRIGHT AND LICENSE
72 Copyright 2006 by Infinity Interactive, Inc.
74 L<http://www.iinteractive.com>
76 This library is free software; you can redistribute it and/or modify
77 it under the same terms as Perl itself.