rue : $False;
}
fun IsTrue($arg) {
return Type($arg) eq $TrueType ? $True : $False;
}
fun TO_JSON($arg) {
no strict 'refs';
return ${$arg} ? $TrueRef : $FalseRef;
}
fun True() {
return $
d2 to_json
TO_JSON(Any $arg) : Ref['SCALAR']
The TO_JSON method returns a scalar ref representing truthiness or falsiness
based on the arguments passed, this function is commonly used by JSON enco
=over 4
=item TO_JSON example #1
my $bool = Data::Object::Boolean->new(1);
$bool->TO_JSON; # \1
=back
=over 4
=item TO_JSON example #2
Data::Object::Boolean::TO_JSON(
Data::Object::