FormHandler/Widget/Field/Role/HTMLAttributes.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
_add_html_attributes
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package HTML::FormHandler::Widget::Field::Role::HTMLAttributes;
2 # ABSTRACT: apply HTML attributes
3 $HTML::FormHandler::Widget::Field::Role::HTMLAttributes::VERSION = '0.410001';
4  
5 use Moose::Role;
6 use HTML::FormHandler::Render::Util ('process_attrs');
7  
8 sub _add_html_attributes {
9 my $self = shift;
10 my $output = process_attrs( $self->attributes );
11 return $output;
12 }
13  
14 1;
15  
16 __END__
17  
18 =pod
19  
20 =encoding UTF-8
21  
22 =head1 NAME
23  
24 HTML::FormHandler::Widget::Field::Role::HTMLAttributes - apply HTML attributes
25  
26 =head1 VERSION
27  
28 version 0.410001
29  
30 =head1 SYNOPSIS
31  
32 Deprecated. Only here for interim compatibility, to provide
33 '_add_html_attributes' method. Will be removed in the future.
34  
35 =head1 AUTHOR
36  
37 FormHandler Contributors - see HTML::FormHandler
38  
39 =head1 COPYRIGHT AND LICENSE
40  
41 This software is copyright (c) 2017 by Gerda Shank.
42  
43 This is free software; you can redistribute it and/or modify it under
44 the same terms as the Perl 5 programming language system itself.
45  
46 =cut