[intro]     [up]

Class BooleanParser

Extends Class: Parser

A parser for Boolean values. Actually, maps a true and a false value.

Example
var parser = new BooleanParser("yes", "no");
alert(parser.format(false)); //Result is "no"
alert(parser.parse("yes")); //Result is true
alert(parser.parse("true")); //Result is true


Constructor Arguments
Name Type Default Description
trueValue Object The JST_DEFAULT_TRUE_VALUE value The value for boolean TRUE
falseValue Object The JST_DEFAULT_FALSE_VALUE value The value for boolean FALSE

Properties
falseValue The value for boolean FALSE
trueValue The value for boolean TRUE



Properties
falseValue
The value for boolean FALSE
trueValue
The value for boolean TRUE