Begin adding a Mouse::Meta::Role which is accessible through Role->meta
Shawn M Moore [Tue, 17 Jun 2008 03:26:57 +0000 (03:26 +0000)]
lib/Mouse/Meta/Role.pm [new file with mode: 0644]
lib/Mouse/Role.pm

diff --git a/lib/Mouse/Meta/Role.pm b/lib/Mouse/Meta/Role.pm
new file mode 100644 (file)
index 0000000..181578a
--- /dev/null
@@ -0,0 +1,8 @@
+#!/usr/bin/env perl
+package Mouse::Meta::Role;
+use strict;
+use warnings;
+
+
+1;
+
index 678d4e9..312f1ad 100644 (file)
@@ -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'";