#
# This file is part of Reindeer
#
# This software is Copyright (c) 2011 by Chris Weyl.
#
# This is free software, licensed under:
#
# The GNU Lesser General Public License, Version 2.1, February 1999
#
package Reindeer::Role;
our $AUTHORITY = 'cpan:RSRCHBOY';
$Reindeer::Role::VERSION = '0.018';
# ABSTRACT: Reindeer in role form
use strict;
use warnings;
use Reindeer::Util;
use Moose::Exporter;
use Import::Into;
my (undef, undef, $init_meta) = Moose::Exporter->build_import_methods(
install => [ qw{ import unimport } ],
also => [ 'Moose::Role', Reindeer::Util::also_list() ],
trait_aliases => [ Reindeer::Util::trait_aliases() ],
as_is => [ Reindeer::Util::as_is() ],
);
sub init_meta {
my ($class, %options) = @_;
my $for_class = $options{for_class};
if ($] >= 5.010) {
eval 'use feature';
feature->import(':5.10');
}
### $for_class
Moose::Role->init_meta(for_class => $for_class);
Reindeer::Util->import_type_libraries({ -into => $for_class });
Path::Class->export_to_level(1);
Try::Tiny->import::into(1);
MooseX::Params::Validate->import({ into => $for_class });
Moose::Util::TypeConstraints->import(
{ into => $for_class },
qw{ class_type role_type duck_type },
);
MooseX::MarkAsMethods->import({ into => $for_class }, autoclean => 1);
goto $init_meta if defined $init_meta;
}
!!42;
__END__
=pod
=encoding UTF-8
=for :stopwords Chris Weyl
=for :stopwords Wishlist flattr flattr'ed gittip gittip'ed
=head1 NAME
Reindeer::Role - Reindeer in role form
=head1 VERSION
This document describes version 0.018 of Reindeer::Role - released March 28, 2015 as part of Reindeer.
=head1 SYNOPSIS
# ta-da!
use Reindeer::Role;
=head1 DESCRIPTION
For now, see the L<Reindeer> docs for information about what meta extensions
are automatically applied.
=for Pod::Coverage init_meta
=head1 SEE ALSO
Please see those modules/websites for more information related to this module.
=over 4
=item *
L<Reindeer|Reindeer>
=item *
L<Moose::Role>
=back
=head1 SOURCE
The development version is on github at L<http://https://github.com/RsrchBoy/reindeer>
and may be cloned from L<git://https://github.com/RsrchBoy/reindeer.git>
=head1 BUGS
Please report any bugs or feature requests on the bugtracker website
https://github.com/RsrchBoy/reindeer/issues
When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.
=head1 AUTHOR
Chris Weyl <cweyl@alumni.drew.edu>
=head2 I'm a material boy in a material world
=begin html
<a href="https://www.gittip.com/RsrchBoy/"><img src="https://raw.githubusercontent.com/gittip/www.gittip.com/master/www/assets/%25version/logo.png" /></a>
<a href="http://bit.ly/rsrchboys-wishlist"><img src="http://wps.io/wp-content/uploads/2014/05/amazon_wishlist.resized.png" /></a>
<a href="https://flattr.com/submit/auto?user_id=RsrchBoy&url=https%3A%2F%2Fgithub.com%2FRsrchBoy%2Freindeer&title=RsrchBoy's%20CPAN%20Reindeer&tags=%22RsrchBoy's%20Reindeer%20in%20the%20CPAN%22"><img src="http://api.flattr.com/button/flattr-badge-large.png" /></a>
=end html
Please note B<I do not expect to be gittip'ed or flattr'ed for this work>,
rather B<it is simply a very pleasant surprise>. I largely create and release
works like this because I need them or I find it enjoyable; however, don't let
that stop you if you feel like it ;)
L<Flattr this|https://flattr.com/submit/auto?user_id=RsrchBoy&url=https%3A%2F%2Fgithub.com%2FRsrchBoy%2Freindeer&title=RsrchBoy's%20CPAN%20Reindeer&tags=%22RsrchBoy's%20Reindeer%20in%20the%20CPAN%22>,
L<gittip me|https://www.gittip.com/RsrchBoy/>, or indulge my
L<Amazon Wishlist|http://bit.ly/rsrchboys-wishlist>... If you so desire.
=head1 COPYRIGHT AND LICENSE
This software is Copyright (c) 2011 by Chris Weyl.
This is free software, licensed under:
The GNU Lesser General Public License, Version 2.1, February 1999
=cut