NAME
Org::Element::Base - Base class for element of Org document
VERSION
version 0.03
ATTRIBUTES
document => DOCUMENT
Link to document object. Elements need this e.g. to access file-wide settings, properties, etc.
parent => undef | ELEMENT
Link to parent element.
children => undef | ARRAY[ELEMENTS]
METHODS
$el->element_as_string() => STR
Return the string representation of element. The default implementation will just try to return _raw or empty string. Subclasses might want to override for more appropriate representation.
$el->children_as_string() => STR
Return the string representation of children elements. The default implementation will just try to concatenate as_string() for each child.
$el->as_string() => STR
Return the string representation of element. The default implementation will just concatenate element_as_string() and children_as_string(). Subclasses might want to override for more appropriate representation.
AUTHOR
Steven Haryanto <stevenharyanto@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Steven Haryanto.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.