Commit 4b1eea48 authored by Alasdair Keyes's avatar Alasdair Keyes

Update Boolean perldocs

parent 9cb3ec74
......@@ -35,7 +35,7 @@ ValueObject::Boolean - Boolean Value Object
=head1 SYNOPSIS
use base qw/ ValueObject::Boolean /;
use base ValueObject::Boolean;
my $vo = ValueObject::Boolean->new('yes');
......@@ -59,6 +59,8 @@ or Exception object ValueObject::Boolean::Exception::Invalid
Creates a new object
Throws ValueObject::Boolean::Exception::Invalid if $value is invalid
=item validate()
Called during instantiation to validate $value
......
......@@ -37,7 +37,7 @@ ValueObject::Boolean::OnOff - Boolean Value Object for on/off values
=head1 SYNOPSIS
use base qw/ ValueObject::Boolean::OnOff /;
use ValueObject::Boolean::OnOff;
my $vo = ValueObject::Boolean::OnOff->new('on');
......@@ -54,6 +54,8 @@ values 'on' and 'off' (Case insensitive)
Creates a new object
Throws ValueObject::Boolean::Exception::InvalidOnOff if $value is invalid
=item validate()
Called during instantiation to validate $value
......
......@@ -39,7 +39,7 @@ ValueObject::Boolean::TrueFalse - Boolean Value Object for true/false values
=head1 SYNOPSIS
use base qw/ ValueObject::Boolean::TrueFalse /;
use ValueObject::Boolean::TrueFalse;
my $vo = ValueObject::Boolean::TrueFalse->new('true');
......@@ -58,6 +58,8 @@ Accepts values 't', 'true', 'f', 'false' lowercase and uppercase.
Creates a new object
Throws ValueObject::Boolean::Exception::InvalidTrueFalse if $value is invalid
=item validate()
Called during instantiation to validate $value
......
......@@ -39,7 +39,7 @@ ValueObject::Boolean::YesNo - Boolean Value Object for yes/no values
=head1 SYNOPSIS
use base qw/ ValueObject::Boolean::YesNo /;
use ValueObject::Boolean::YesNo;
my $vo = ValueObject::Boolean::YesNo->new('yes');
......@@ -58,6 +58,8 @@ Accepts values 'y', 'yes', 'n', 'no' lowercase and uppercase.
Creates a new object
Throws ValueObject::Boolean::Exception::InvalidYesNo if $value is invalid
=item validate()
Called during instantiation to validate $value
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment