NAME

JE::LValue - JavaScript lvalue class

SYNOPSIS

use JE::LValue;

$lv = new JE::LValue $some_obj, 'property_name';

$lv->get;         # get property
$lv->set($value)  # set property

$lv->some_other_method  # same as $lv->get->some_other_method

DESCRIPTION

This class implements JavaScript lvalue (called "Reference Types" by the ECMAScript specification).

METHODS

If a method is called that is not listed here, it will be passed to the property referenced by the lvalue. (See the last item in the SYNOPSIS, above.)

$lv = new JE::LValue $obj, $property

Creates an lvalue/reference with $obj as the base object and $property as the property name.

$lv->get

Gets the value of the property.

$lv->set($value)

Sets the property to $value and returns $lv.

$lv->call(@args)

If the property is a function, this calls the function with the base object as the 'this' value.

$lv->base

Returns the base object.

$lv->property

Returns the property name.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 95:

=over without closing =back