clean up coerce generation a bit
[gitmo/Moo.git] / lib / Role / Tiny / With.pm
CommitLineData
5a17a185 1package Role::Tiny::With;
a1164a0b 2
3use strict;
4use warnings FATAL => 'all';
8b14bafd 5use Role::Tiny ();
a1164a0b 6
7use Exporter 'import';
8our @EXPORT = qw( with );
9
10sub with {
11 my $target = caller;
12 Role::Tiny->apply_role_to_package($target, @_)
13}
14
151;
a1164a0b 16
17=head1 NAME
18
19Role::Tiny::With - Neat interface for consumers of Role::Tiny roles
20
21=head1 SYNOPSIS
22
23 package Some::Class;
24
25 use Role::Tiny::With;
26
27 with 'Some::Role';
28
29 # The role is now mixed in
30
31=head1 DESCRIPTION
32
33C<Role::Tiny> is a minimalist role composition tool. C<Role::Tiny::With>
34provides a C<with> function to compose such roles.
35
36=head1 AUTHORS
37
38See L<Moo> for authors.
39
40=head1 COPYRIGHT AND LICENSE
41
42See L<Moo> for the copyright and license.
43
44=cut
45
46