Group
Extension

Matches 1

Data-Object ( A/AW/AWNCORP/Data-Object-2.05.tar.gz, AWNCORP, 2020; MetaCPAN )
Data-Object/lib/Data/Object/Boolean.pm ( view source; MetaCPAN )
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::

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.