| 1 | package Test::SpellCheck::Plugin::Dictionary; | ||||||||||
| 2 | |||||||||||
| 3 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 2 | ▶ | use 5.026; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 2 | ▶ | use experimental qw( signatures ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 2 | ▶ | use Carp qw( croak ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | # ABSTRACT: Test::SpellCheck for adding additional dictionaries | ||||||||||
| 10 | 2 | our $VERSION = '0.02'; # VERSION | |||||||||
| 11 | |||||||||||
| 12 | |||||||||||
| 13 | 5 | ▶ | sub new ($class, %args) | ||||||||
|
Subroutine
new: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||
| 14 | { | ||||||||||
| 15 | 5 | ▶ | croak "must specify dictionary" unless defined $args{dictionary}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 16 | 4 | ▶ | croak "dictionary $args{dictionary} not found" unless -f $args{dictionary}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | 3 | bless { dictionary => $args{dictionary} }, $class; | |||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 3 | ▶ | sub dictionary ($self) | ||||||||
|
Subroutine
dictionary: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 21 | { | ||||||||||
| 22 | 3 | return $self->{dictionary}; | |||||||||
| 23 | } | ||||||||||
| 24 | |||||||||||
| 25 | 2 | 1; | |||||||||
| 26 | |||||||||||
| 27 | __END__ | ||||||||||