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