lib/AI/MicroStructure/Object.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 24 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
name
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/bin/perl -w
2  
3  
4 package AI::MicroStructure::Object;
5  
6 use strict;
7 use warnings;
8 use Digest::MD5 qw(md5_hex);
9 sub new {
10 my $pkg = shift;
11 my $self = bless {}, $pkg;
12 $self->{name} = md5_hex(@_);
13 foreach my $element (@_) {
14 # warn "types are ", @_;
15 $self->{ $element } = $element;
16 }
17 return $self;
18 }
19 sub name {
20  
21 my $self = shift;
22 return $self->{name};
23 }
24 1;
25  
26  
27 =head1 NAME
28  
29 AI::MicroStructure::Object
30  
31 =head1 DESCRIPTION
32  
33 Stack of ObjectContainers
34  
35 =head1 SYNOPSIS
36  
37 ~$ micro new world
38  
39 ~$ micro structures
40  
41 ~$ micro any 2
42  
43 ~$ micro drop world
44  
45 ~$ micro
46  
47 =head1 AUTHOR
48  
49 Hagen Geissler <santex@cpan.org>
50  
51 =head1 COPYRIGHT AND LICENCE
52  
53 Hagen Geissler <santex@cpan.org>
54  
55 =head1 SUPPORT AND DOCUMENTATION
56  
57 [sample using concepts](http://quantup.com)
58  
59 [PDF info on my works](https://github.com/santex)
60  
61  
62 =head1 SEE ALSO
63  
64 AI-MicroStructure
65  
66 =cut