-
-
27 Feb 2018 08:38:55 UTC
- Distribution: Clownfish
- Module version: 0.006003
- Source (raw)
- Pod Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Clone repository
- Issues
- Testers (1313 / 0 / 7)
- Kwalitee
Bus factor: 0- License: apache_2_0
- Perl: v5.8.3
- Activity
24 month- Tools
- Download (230.31KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors- The Apache Lucy Project <dev at lucy dot apache dot org>
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Clownfish::Boolean - Boolean type.
SYNOPSIS
use Clownfish::Boolean qw( $true_singleton $false_singleton ); my $bool = Clownfish::Boolean->singleton($truth_value); my $truth_value = $bool->get_value; if ($bool->equals($true_singleton)) { print "true\n"; }
DESCRIPTION
There are only two singleton instances of this class:
$true_singleton
and$false_singleton
which are exported on demand.CONSTRUCTORS
singleton
my $bool = Clownfish::Boolean->singleton($truth_value);
Return either
$true_singleton
or$false_singleton
depending on the supplied value.METHODS
get_value
my $bool = $boolean->get_value();
Return the value of the Boolean.
clone
my $result = $boolean->clone();
Return a clone of the object.
INHERITANCE
Clownfish::Boolean isa Clownfish::Obj.
Module Install Instructions
To install Clownfish, copy and paste the appropriate command in to your terminal.
cpanm Clownfish
perl -MCPAN -e shell install Clownfish
For more information on module installation, please visit the detailed CPAN module installation guide.