File Coverage

blib/lib/Game/WordBrain/WordToFind.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod 1 1 100.0
total 13 13 100.0


line stmt bran cond sub pod time code
1             package Game::WordBrain::WordToFind;
2              
3 7     7   17354 use strict;
  7         8  
  7         170  
4 7     7   18 use warnings;
  7         7  
  7         380  
5              
6             our $VERSION = '0.2.2'; # VERSION
7             # ABSTRACT: Representation of a WordBrain Word To Find
8              
9             =head1 NAME
10              
11             Game::WordBrain::WordToFind - Representation of a WordBrain Word To Find
12              
13             =head1 SYNOPSIS
14              
15             my $word_to_find = Game::WordBrain::WordToFind->new({
16             num_letters => 5
17             });
18              
19              
20             =head1 DESCRIPTION
21              
22             In WordBrain, all we are given is the length ( and number of ) unknown words. L represents a single unknown word, containing only it's length.
23              
24             =head1 ATTRIBUTES
25              
26             =head2 B
27              
28             The length of the word to find.
29              
30             =head1 METHODS
31              
32             =head2 new
33              
34             my $word_to_find = Game::WordBrain::WordToFind->new({
35             num_letters => 5
36             });
37              
38             Given the length of the unknown L, returns an instance of L.
39              
40             =cut
41              
42             sub new {
43 11     11 1 1256 my $class = shift;
44 11         19 my $args = shift;
45              
46 11         86 return bless $args, $class;
47             }
48              
49             1;