| MooseX-Method documentation | Contained in the MooseX-Method distribution. |
MooseX::Meta::Parameter - Parameter API role
Exports a data structure representing the parameter.
This API is unstable, it may change at any time. This should not affect ordinary MooseX::Method usage.
Ensures that the class importing the role conforms to the MooseX::Method parameter API.
Most software has bugs. This module probably isn't an exception. If you find a bug please either email me, or add the bug to cpan-RT.
Anders Nor Berle <debolaz@gmail.com>
Copyright 2007 by Anders Nor Berle.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| MooseX-Method documentation | Contained in the MooseX-Method distribution. |
package MooseX::Meta::Parameter; use Moose::Role; requires qw/validate/; our $VERSION = '0.01'; our $AUTHORITY = 'cpan:BERLE'; sub export { my ($self) = @_; my $export = {}; for (keys %$self) { $export->{$_} = $self->{$_} if defined $self->{$_}; } return $export; } 1; __END__