NAME
HTML::Mason::Component::Subcomponent - Mason Subcomponent Class
DESCRIPTION
This is a subclass of HTML::Mason::Component. Mason uses it to implement both subcomponents (defined by <%def>
) and methods (defined by <%method>
).
A subcomponent gets most of its properties from its owner.
METHODS
- is_method
-
Returns 1 if this is a method (declared by
<%method>
), 0 if it is a subcomponent (defined by c<< <%def> >>). - owner
-
Return the component object that this subcomponent or method was defined within.