| MOSES-MOBY documentation | view source | Contained in the MOSES-MOBY distribution. |
MOSES::MOBY::Data::Boolean - A primite Moby data type for booleans
use MOSES::MOBY::Data::Boolean;
# create a Moby Boolean with initial value of true
my $data = MOSES::MOBY::Data::Boolean->new ( value=>'true' );
my $data = MOSES::MOBY::Data::Boolean->new ('true');
# change the value to false
$data->value ('false');
# get the value
print $data->value;
# create a Moby Integer with initial value of -15
my $data = MOSES::MOBY::Data::Integer->new (value => -15);
An object representing a Boolan, a Moby primitive data type.
Edward Kawas (edward.kawas [at] gmail [dot] com) Martin Senger (martin.senger [at] gmail [dot] com)
Details are in MOSES::MOBY::Base. Here just a list of them (additionally to the attributes from the parent classes)
A value of this datatype. Must be a boolean.
| MOSES-MOBY documentation | view source | Contained in the MOSES-MOBY distribution. |