Checking in changes prior to tagging of version 0.50_04. Changelog diff is:
[gitmo/Mouse.git] / lib / Mouse / Meta / Role / Method.pm
index eb94651..3802b15 100755 (executable)
@@ -1,10 +1,33 @@
-package Mouse::Meta::Role::Method;\r
-use strict;\r
-use warnings;\r
-\r
-use base qw(Mouse::Meta::Method);\r
-\r
-1;\r
-\r
-__END__\r
-\r
+package Mouse::Meta::Role::Method;
+use Mouse::Util; # enables strict and warnings
+
+use Mouse::Meta::Method;
+our @ISA = qw(Mouse::Meta::Method);
+
+sub _new{
+    my($class, %args) = @_;
+    my $self = bless \%args, $class;
+
+    if($class ne __PACKAGE__){
+        $self->meta->_initialize_object($self, \%args);
+    }
+    return $self;
+}
+
+1;
+__END__
+
+=head1 NAME
+
+Mouse::Meta::Role::Method - A Mouse Method metaclass for Roles
+
+=head1 VERSION
+
+This document describes Mouse version 0.50_04
+
+=head1 SEE ALSO
+
+L<Moose::Meta::Role::Method>
+
+=cut
+