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 6     6   18469 use strict;
  6         8  
  6         151  
4 6     6   17 use warnings;
  6         6  
  6         399  
5              
6             our $VERSION = '0.2.1'; # 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 5     5 1 1427 my $class = shift;
44 5         7 my $args = shift;
45              
46 5         14 return bless $args, $class;
47             }
48              
49             1;