1Clownfish::Boolean(3pm)User Contributed Perl DocumentatioCnlownfish::Boolean(3pm)
2
3
4

NAME

6       Clownfish::Boolean - Boolean type.
7

SYNOPSIS

9           use Clownfish::Boolean qw( $true_singleton $false_singleton );
10
11           my $bool = Clownfish::Boolean->singleton($truth_value);
12           my $truth_value = $bool->get_value;
13
14           if ($bool->equals($true_singleton)) {
15               print "true\n";
16           }
17

DESCRIPTION

19       There are only two singleton instances of this class: $true_singleton
20       and $false_singleton which are exported on demand.
21

CONSTRUCTORS

23   singleton
24           my $bool = Clownfish::Boolean->singleton($truth_value);
25
26       Return either $true_singleton or $false_singleton depending on the
27       supplied value.
28

METHODS

30   get_value
31           my $bool = $boolean->get_value();
32
33       Return the value of the Boolean.
34
35   clone
36           my $result = $boolean->clone();
37
38       Return a clone of the object.
39

INHERITANCE

41       Clownfish::Boolean isa Clownfish::Obj.
42
43
44
45perl v5.38.0                      2023-07-20           Clownfish::Boolean(3pm)
Impressum