| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package Net::ACME::X::HashBase; | 
| 2 |  |  |  |  |  |  |  | 
| 3 | 9 |  |  | 9 |  | 2959 | use strict; | 
|  | 9 |  |  |  |  | 23 |  | 
|  | 9 |  |  |  |  | 209 |  | 
| 4 | 9 |  |  | 9 |  | 62 | use warnings; | 
|  | 9 |  |  |  |  | 9 |  | 
|  | 9 |  |  |  |  | 205 |  | 
| 5 |  |  |  |  |  |  |  | 
| 6 | 9 |  |  | 9 |  | 29 | use parent qw( Net::ACME::X::OverloadBase ); | 
|  | 9 |  |  |  |  | 10 |  | 
|  | 9 |  |  |  |  | 56 |  | 
| 7 |  |  |  |  |  |  |  | 
| 8 |  |  |  |  |  |  | sub new { | 
| 9 | 22 |  |  | 22 | 0 | 31 | my ( $class, $string, $props_hr ) = @_; | 
| 10 |  |  |  |  |  |  |  | 
| 11 | 22 |  |  |  |  | 97 | $class->_check_overload(); | 
| 12 |  |  |  |  |  |  |  | 
| 13 | 22 | 100 |  |  |  | 90 | my %attrs = $props_hr ? %$props_hr : (); | 
| 14 |  |  |  |  |  |  |  | 
| 15 | 22 |  |  |  |  | 146 | return bless [ $string, \%attrs ], $class; | 
| 16 |  |  |  |  |  |  | } | 
| 17 |  |  |  |  |  |  |  | 
| 18 |  |  |  |  |  |  | sub get { | 
| 19 | 41 |  |  | 41 | 0 | 15474 | my ( $self, $attr ) = @_; | 
| 20 |  |  |  |  |  |  |  | 
| 21 |  |  |  |  |  |  | #Do we need to clone this? Could JSON suffice, or do we need Clone? | 
| 22 | 41 |  |  |  |  | 235 | return $self->[1]{$attr}; | 
| 23 |  |  |  |  |  |  | } | 
| 24 |  |  |  |  |  |  |  | 
| 25 |  |  |  |  |  |  | sub to_string { | 
| 26 | 49 |  |  | 49 | 0 | 2352 | my ($self) = @_; | 
| 27 |  |  |  |  |  |  |  | 
| 28 | 49 |  |  |  |  | 290 | return $self->[0]; | 
| 29 |  |  |  |  |  |  | } | 
| 30 |  |  |  |  |  |  |  | 
| 31 |  |  |  |  |  |  | 1; |