line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# This file is part of MooseX-Util |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# This software is Copyright (c) 2012 by Chris Weyl. |
5
|
|
|
|
|
|
|
# |
6
|
|
|
|
|
|
|
# This is free software, licensed under: |
7
|
|
|
|
|
|
|
# |
8
|
|
|
|
|
|
|
# The GNU Lesser General Public License, Version 2.1, February 1999 |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
package MooseX::Util::Meta::Class; |
11
|
|
|
|
|
|
|
BEGIN { |
12
|
4
|
|
|
4
|
|
2980956
|
$MooseX::Util::Meta::Class::AUTHORITY = 'cpan:RSRCHBOY'; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
$MooseX::Util::Meta::Class::VERSION = '0.003'; |
15
|
|
|
|
|
|
|
# ABSTRACT: A helper metaclass |
16
|
|
|
|
|
|
|
|
17
|
4
|
|
|
4
|
|
31
|
use Moose; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
32
|
|
18
|
4
|
|
|
4
|
|
29425
|
use namespace::autoclean; |
|
4
|
|
|
|
|
3017
|
|
|
4
|
|
|
|
|
35
|
|
19
|
4
|
|
|
4
|
|
3205
|
use MooseX::AttributeShortcuts; |
|
4
|
|
|
|
|
1022123
|
|
|
4
|
|
|
|
|
34
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
extends 'Moose::Meta::Class'; |
22
|
|
|
|
|
|
|
with 'MooseX::TraitFor::Meta::Class::BetterAnonClassNames'; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
# NOTE: making this package immutable breaks our metaclass compatibility! |
25
|
|
|
|
|
|
|
#__PACKAGE__->meta->make_immutable; |
26
|
|
|
|
|
|
|
!!42; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__END__ |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=pod |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=encoding UTF-8 |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=for :stopwords Chris Weyl BetterAnonClassNames |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=for :stopwords Wishlist flattr flattr'ed gittip gittip'ed |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 NAME |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
MooseX::Util::Meta::Class - A helper metaclass |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 VERSION |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
This document describes version 0.003 of MooseX::Util::Meta::Class - released May 22, 2014 as part of MooseX-Util. |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 SYNOPSIS |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
# create a new type of Zombie catcher equipped with machete and car |
49
|
|
|
|
|
|
|
my $meta = MooseX::Util::Meta::Class->create_anon_class( |
50
|
|
|
|
|
|
|
'Zombie::Catcher' => qw{ |
51
|
|
|
|
|
|
|
Zombie::Catcher::Tools::Machete |
52
|
|
|
|
|
|
|
Zombie::Catcher::Tools::TracyChapmansFastCar |
53
|
|
|
|
|
|
|
}, |
54
|
|
|
|
|
|
|
); |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
# created anon classname is: Zombie::Catcher::__ANON__::SERIAL::42 |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 DESCRIPTION |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
This is a trivial extension of L<Moose::Meta::Class> that consumes the |
61
|
|
|
|
|
|
|
L<BetterAnonClassNames|MooseX::TraitFor::Meta::Class::BetterAnonClassNames> |
62
|
|
|
|
|
|
|
trait. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 SEE ALSO |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
Please see those modules/websites for more information related to this module. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=over 4 |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=item * |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
L<MooseX::Util|MooseX::Util> |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=back |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head1 SOURCE |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
The development version is on github at L<http://https://github.com/RsrchBoy/moosex-util> |
79
|
|
|
|
|
|
|
and may be cloned from L<git://https://github.com/RsrchBoy/moosex-util.git> |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head1 BUGS |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
Please report any bugs or feature requests on the bugtracker website |
84
|
|
|
|
|
|
|
https://github.com/RsrchBoy/moosex-util/issues |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
When submitting a bug or request, please include a test-file or a |
87
|
|
|
|
|
|
|
patch to an existing test-file that illustrates the bug or desired |
88
|
|
|
|
|
|
|
feature. |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head1 AUTHOR |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
Chris Weyl <cweyl@alumni.drew.edu> |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=head2 I'm a material boy in a material world |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=begin html |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
<a href="https://www.gittip.com/RsrchBoy/"><img src="https://raw.githubusercontent.com/gittip/www.gittip.com/master/www/assets/%25version/logo.png" /></a> |
99
|
|
|
|
|
|
|
<a href="http://bit.ly/rsrchboys-wishlist"><img src="http://wps.io/wp-content/uploads/2014/05/amazon_wishlist.resized.png" /></a> |
100
|
|
|
|
|
|
|
<a href="https://flattr.com/submit/auto?user_id=RsrchBoy&url=https%3A%2F%2Fgithub.com%2FRsrchBoy%2Fmoosex-util&title=RsrchBoy's%20CPAN%20MooseX-Util&tags=%22RsrchBoy's%20MooseX-Util%20in%20the%20CPAN%22"><img src="http://api.flattr.com/button/flattr-badge-large.png" /></a> |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=end html |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
Please note B<I do not expect to be gittip'ed or flattr'ed for this work>, |
105
|
|
|
|
|
|
|
rather B<it is simply a very pleasant surprise>. I largely create and release |
106
|
|
|
|
|
|
|
works like this because I need them or I find it enjoyable; however, don't let |
107
|
|
|
|
|
|
|
that stop you if you feel like it ;) |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
L<Flattr this|https://flattr.com/submit/auto?user_id=RsrchBoy&url=https%3A%2F%2Fgithub.com%2FRsrchBoy%2Fmoosex-util&title=RsrchBoy's%20CPAN%20MooseX-Util&tags=%22RsrchBoy's%20MooseX-Util%20in%20the%20CPAN%22>, |
110
|
|
|
|
|
|
|
L<gittip me|https://www.gittip.com/RsrchBoy/>, or indulge my |
111
|
|
|
|
|
|
|
L<Amazon Wishlist|http://bit.ly/rsrchboys-wishlist>... If you so desire. |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
This software is Copyright (c) 2012 by Chris Weyl. |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
This is free software, licensed under: |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
The GNU Lesser General Public License, Version 2.1, February 1999 |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
=cut |