line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package XML::Toolkit::Builder::ClassRegistry; |
2
|
|
|
|
|
|
|
{ |
3
|
|
|
|
|
|
|
$XML::Toolkit::Builder::ClassRegistry::VERSION = '0.15'; |
4
|
|
|
|
|
|
|
} |
5
|
2
|
|
|
2
|
|
5730
|
use Moose::Role; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
22
|
|
6
|
2
|
|
|
2
|
|
11352
|
use namespace::autoclean; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
25
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
with qw(XML::Toolkit::Builder::NamespaceRegistry); |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has class_registry => ( |
11
|
|
|
|
|
|
|
isa => 'HashRef', |
12
|
|
|
|
|
|
|
is => 'ro', |
13
|
|
|
|
|
|
|
lazy => 1, |
14
|
|
|
|
|
|
|
default => sub { {} }, |
15
|
|
|
|
|
|
|
traits => ['Hash'], |
16
|
|
|
|
|
|
|
handles => { |
17
|
|
|
|
|
|
|
'add_class' => 'set', |
18
|
|
|
|
|
|
|
'classes' => 'values', |
19
|
|
|
|
|
|
|
'class_names' => 'keys', |
20
|
|
|
|
|
|
|
'get_class' => 'get', |
21
|
|
|
|
|
|
|
'has_class' => 'exists', |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub create_class { |
26
|
5
|
|
|
5
|
|
12
|
my $self = shift; |
27
|
5
|
|
|
|
|
48
|
Moose::Meta::Class->create(@_); |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
__END__ |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 NAME |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
XML::Toolkit::Builder::ClassRegistry - A class to ... |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 VERSION |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
version 0.15 |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 SYNOPSIS |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
use XML::Toolkit::Builder::ClassRegistry; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 DESCRIPTION |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
The XML::Toolkit::Builder::ClassRegistry class implements ... |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 SUBROUTINES / METHODS |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 DEPENDENCIES |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Modules used, version dependencies, core yes/no |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
Moose::Role |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 NOTES |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
... |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 BUGS AND LIMITATIONS |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
None known currently, please email the author if you find any. |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 AUTHOR |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
Chris Prather (perigrin@domain.tld) |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 LICENCE |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
Copyright 2009 by Chris Prather. |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
This software is free. It is licensed under the same terms as Perl itself. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=cut |