make ro accessor die
[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;
a1164a0b 15
16=head1 NAME
17
18Role::Tiny::With - Neat interface for consumers of Role::Tiny roles
19
20=head1 SYNOPSIS
21
22 package Some::Class;
23
24 use Role::Tiny::With;
25
26 with 'Some::Role';
27
28 # The role is now mixed in
29
30=head1 DESCRIPTION
31
32C<Role::Tiny> is a minimalist role composition tool. C<Role::Tiny::With>
33provides a C<with> function to compose such roles.
34
35=head1 AUTHORS
36
37See L<Moo> for authors.
38
39=head1 COPYRIGHT AND LICENSE
40
41See L<Moo> for the copyright and license.
42
43=cut
44
45