Scalar - scalar component property
C<$property = new Podius::Property::Scalar;>
Supposed to be used in L<Podius::Component> and L<Podius::Property>
module trees only.
This module implements general scalar component property.
It can be subclassed to add specific meaning to stored scalar field.
the Exception manpage, the Podius::Property manpage.
- description
-
Class constructor.
- parameters
-
Class name and optional initializing scalar (default is undef).
- returns
-
New formed property reference.
- description
-
Class constructor. Used for deserialization.
- parameters
-
Class name (like all constructors) and string, representing the property.
Additional parameters are property static parameters (if any).
- returns
-
New formed property reference.
- description
-
Used for serialization.
- returns
-
String, representing the property, from which the property can be restored
later by new_from_serialized constructor.
The scalar.
- parameters
-
Accessor: none.
-
Modifier: property value to set. undef means unset the value.
- returns
-
Property value. undef means no property value is set.