NAME
Devel::Ladybug::Bool - Overloaded object class for booleans
DESCRIPTION
Extends Devel::Ladybug::Num.
SYNOPSIS
use Devel::Ladybug::Bool;
my $bool = Devel::Ladybug::Bool->new($condition ? Devel::Ladybug::Bool::true : Devel::Ladybug::Bool::false);
if ( $bool ) {
print "It's true!\n";
} else {
print "Clearly false.\n";
}
These methods are silly, but they exist.
if ( $bool->isTrue() ) {
print "That's affirmative\n";
}
if ( $bool->isFalse() ) {
print "Negative on that, Houston\n";
}
SEE ALSO
This file is part of Devel::Ladybug.