From: Shawn M Moore Date: Tue, 17 Jun 2008 03:26:57 +0000 (+0000) Subject: Begin adding a Mouse::Meta::Role which is accessible through Role->meta X-Git-Tag: 0.19~308 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a2227e71332a3c0e26445c14c7bb596eb06dbc92;p=gitmo%2FMouse.git Begin adding a Mouse::Meta::Role which is accessible through Role->meta --- diff --git a/lib/Mouse/Meta/Role.pm b/lib/Mouse/Meta/Role.pm new file mode 100644 index 0000000..181578a --- /dev/null +++ b/lib/Mouse/Meta/Role.pm @@ -0,0 +1,8 @@ +#!/usr/bin/env perl +package Mouse::Meta::Role; +use strict; +use warnings; + + +1; + diff --git a/lib/Mouse/Role.pm b/lib/Mouse/Role.pm index 678d4e9..312f1ad 100644 --- a/lib/Mouse/Role.pm +++ b/lib/Mouse/Role.pm @@ -7,10 +7,16 @@ use Sub::Exporter; use Carp 'confess'; use Scalar::Util; +use Mouse::Meta::Role; + do { my $CALLER; my %exports = ( + meta => sub { + my $meta = Mouse::Meta::Role->initialize($CALLER); + return sub { $meta }; + }, extends => sub { return sub { confess "Role does not currently support 'extends'";