JE::Boolean(3pm)

JE::Boolean3pm

Javascript boolean value

Usage

  use JE;
  use JE::Boolean;
  $j = JE->new;
  $js_true  = new JE::Boolean $j, 1;
  $js_false = new JE::Boolean $j, 0;
  $js_true ->value; # returns 1
  $js_false->value; # returns ""
  "$js_true"; # returns "true"
 
  $js_true->to_object; # returns a new JE::Object::Boolean

Overview

This class implements JavaScript boolean values for JE. The difference between this and JE::Object::Boolean is that that module implements boolean objects, while this module implements the primitive values.

The stringification and boolean operators are overloaded.

Releases

7 releases since Debian 7 (Wheezy); the text changed 5 times.

  1. 7
  2. 8
  3. 9–10
  4. 11
  5. 12
  6. 13

From libje-perl 0.066-4 in Debian 13 (Trixie). Parsed by carta from the page's man source.