Skip to content

Commit

Permalink
Small changes to docs #12 and refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Sep 3, 2020
1 parent 28b9723 commit 13c3bde
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Objective
---

A module for testing and doing other kind of metrics on regular text, as in books or
novels, or, forthat matter, manuals.
novels, or, for that matter, manuals.

We're not there yet, but for the time being it is a pretty
good spelling checker that can be used *on the cloud* in continuous
Expand All @@ -29,7 +29,7 @@ progress by telling you how many words you have written so far and in
total, which is an intended side effect of counting the number of
tests == number of words.

how can I use it?
how can I use it in a CI pipeline?
---

1. Save the files you want to be tested to a single directory called,
Expand Down
8 changes: 3 additions & 5 deletions lib/Test/Text.pm
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,16 @@ sub new {
);
croak "Couldn't create speller: $1" if !$speller;
$self->{'_speller'} = $speller;
$speller->add_dic("$dir/words.dic"); #word.dic should be in the text directory
$speller->add_dic("$dir/words.dic"); # word.dic should be in the text directory
return $self;
}

sub dir {
my $self = shift;
return $self->{'_dir'};
return shift->{'_dir'};
}

sub files {
my $self = shift;
return $self->{'_files'};
return shift->{'_files'};
}

sub check {
Expand Down

0 comments on commit 13c3bde

Please sign in to comment.