Permalink
Browse files

Slightly reword the docs.

Also remove namespace::autoclean form the synopsis. That doesn't play well with
overload.pm just yet.
  • Loading branch information...
rafl committed Sep 8, 2009
1 parent d812ba1 commit bbaef686780ac5e422332c1b5b2c0cdc3f273485
@@ -1,5 +1,6 @@
package MooseX::Role::WithOverloading;
# ABSTRACT: Roles which support overloading
+
use Moose::Role ();
use Moose::Exporter;
use Moose::Util::MetaRole;
@@ -31,7 +32,6 @@ sub init_meta {
package MyRole;
use MooseX::Role::WithOverloading;
- use namespace::autoclean;
use overload
q{""} => 'as_string',
@@ -57,9 +57,10 @@ sub init_meta {
=head1 DESCRIPTION
-MooseX::Role::WithOverloading allows you to write a L<Moose::Role>
-which uses operator overloading to overload any operation supported by the
-L<overload> pragma.
+MooseX::Role::WithOverloading allows you to write a L<Moose::Role> which
+defines overloaded operators and allows those operator overloadings to be
+composed into the classes/roles/instances it's compiled to, while plain
+L<Moose::Role>s would lose the overloading.
=begin Pod::Coverage
@@ -68,4 +69,3 @@ init_meta
=end Pod::Coverage
=cut
-
@@ -1,5 +1,6 @@
package MooseX::Role::WithOverloading::Meta::Role;
# ABSTRACT: Roles which support overloading
+
use Moose::Role;
use aliased 'MooseX::Role::WithOverloading::Meta::Role::Composite', 'CompositionRole';
use namespace::autoclean;
@@ -1,5 +1,6 @@
package MooseX::Role::WithOverloading::Meta::Role::Application;
# ABSTRACT: Role application role for Roles which support overloading
+
use Moose::Role;
use overload ();
use MooseX::Types::Moose qw/ArrayRef Str/;
@@ -1,5 +1,6 @@
package MooseX::Role::WithOverloading::Meta::Role::Application::Composite;
# ABSTRACT: Roles which support overloading
+
use Moose::Role;
use namespace::autoclean;
@@ -1,5 +1,6 @@
package MooseX::Role::WithOverloading::Meta::Role::Application::Composite::ToClass;
# ABSTRACT: Roles which support overloading
+
use Moose::Role;
use namespace::autoclean;
@@ -1,5 +1,6 @@
package MooseX::Role::WithOverloading::Meta::Role::Application::Composite::ToInstance;
# ABSTRACT: Roles which support overloading
+
use Moose::Role;
use namespace::autoclean;
@@ -1,5 +1,6 @@
package MooseX::Role::WithOverloading::Meta::Role::Application::Composite::ToRole;
# ABSTRACT: Roles which support overloading
+
use Moose::Role;
use namespace::autoclean;
@@ -1,5 +1,6 @@
package MooseX::Role::WithOverloading::Meta::Role::Application::ToClass;
# ABSTRACT: Roles which support overloading
+
use Moose::Role;
use namespace::autoclean;
@@ -1,5 +1,6 @@
package MooseX::Role::WithOverloading::Meta::Role::Application::ToInstance;
# ABSTRACT: Roles which support overloading
+
use Moose::Role;
use namespace::autoclean;
@@ -1,5 +1,6 @@
package MooseX::Role::WithOverloading::Meta::Role::Application::ToRole;
# ABSTRACT: Roles which support overloading
+
use Moose::Role;
use aliased 'MooseX::Role::WithOverloading::Meta::Role::Application::ToClass';
use aliased 'MooseX::Role::WithOverloading::Meta::Role::Application::ToInstance';
@@ -1,5 +1,6 @@
package MooseX::Role::WithOverloading::Meta::Role::Composite;
# ABSTRACT: Role for composite roles which support overloading
+
use Moose::Role;
use Moose::Util::MetaRole;
use aliased 'MooseX::Role::WithOverloading::Meta::Role::Application::Composite::ToClass';

0 comments on commit bbaef68

Please sign in to comment.