| 1 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | package Games::Crossword::Puzzle::Cell; | ||
| 4 | { | ||
| 5 | 2 | $Games::Crossword::Puzzle::Cell::VERSION = '0.003'; | |
| 6 | } | ||
| 7 | # ABSTRACT: one of those little square bits with a number | ||
| 8 | |||
| 9 | 2 | ▶ | use Carp (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | |||
| 12 | sub new { | ||
| 13 | 0 | ▶ | my ($class, $arg) = @_; |
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 14 | |||
| 15 | my $data = { | ||
| 16 | 0 | map { $_ => $arg->{$_} } qw(across down number value guess) | |
| 17 | }; | ||
| 18 | |||
| 19 | 0 | bless $data => $class; | |
| 20 | } | ||
| 21 | |||
| 22 | |||
| 23 | 0 | ▶ | sub across { $_[0]->{across} } |
|
Subroutine
across: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 24 | 0 | ▶ | sub down { $_[0]->{down} } |
|
Subroutine
down: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 25 | |||
| 26 | |||
| 27 | 0 | ▶ | sub number { $_[0]->{number} } |
|
Subroutine
number: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 28 | |||
| 29 | |||
| 30 | 0 | ▶ | sub value { $_[0]->{value} } |
|
Subroutine
value: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 31 | |||
| 32 | |||
| 33 | 0 | ▶ | sub guess { $_[0]->{guess} } |
|
Subroutine
guess: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 34 | |||
| 35 | 2 | 1; | |
| 36 | |||
| 37 | __END__ | ||