Role::Tiny::With try1
[gitmo/Role-Tiny.git] / lib / Role / Tiny / With.pm
CommitLineData
a1164a0b 1package Role::Tiny;
2
3use strict;
4use warnings FATAL => 'all';
5
6use Exporter 'import';
7our @EXPORT = qw( with );
8
9sub with {
10 my $target = caller;
11 Role::Tiny->apply_role_to_package($target, @_)
12}
13
141;
15__END__
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