=head1 NAME OODoc::Text::Subroutine - collects information about one documented sub =head1 INHERITANCE OODoc::Text::Subroutine is a OODoc::Text is a OODoc::Object =head1 SYNOPSIS =head1 DESCRIPTION Perl has various things we can call "sub" (for "subroutine") one way or the other. This object tries to store all types of them: methods, funtion, ties, and overloads. Actually, these are the most important parts of the documentation. The share more than they differ. =head1 OVERLOADED overload: B<'""' (stringification)> =over 4 See L =back overload: B<'==' and '!='> =over 4 See L =back overload: B<'cmp' (string comparison)> =over 4 See L =back =head1 METHODS =head2 Constructors OODoc::Text::Subroutine-EB(OPTIONS) =over 4 Option --Defined in --Default container OODoc::Text description OODoc::Text '' linenr OODoc::Text name OODoc::Text undef parameters undef type OODoc::Text . container => OBJECT . description => STRING . linenr => INTEGER . name => STRING . parameters => STRING . type => STRING =back =head2 Inheritance knowledge $obj-EB([OBJECT]) =over 4 =back =head2 Attributes $obj-EB([OBJECT]) =over 4 See L =back $obj-EB =over 4 See L =back $obj-EB =over 4 See L =back $obj-EB =over 4 The parameter list for the subroutine is returned as string. The result may be C or empty. =back $obj-EB =over 4 See L =back =head2 Location $obj-EB(MANUAL) =over 4 Try to figure-out what the location for the subroutine is within the MANUAL page. Have a look at all levels of extension for this sub-routine's documentation and decides the best enclosing chapter, section and subsection. Then return that object for the current manual. =back $obj-EB([NAME]) =over 4 See L =back $obj-EB =over 4 Returns the path of the text structure which contains this subroutine. =back $obj-EB =over 4 See L =back $obj-EB =over 4 See L =back =head2 Collected $obj-EB =over 4 Returns a list of option-default combinations on this subroutine. =back $obj-EB(NAME|OBJECT) =over 4 In case of a NAME, a default object for this method is looked up. This does not search through super classes, but solely which is defined with this subroutine. When passed an OBJECT of type OODoc::Text::Default that will be stored. =back $obj-EB =over 4 Returns a list of all defaults as defined by this documentation item in one manual. =back $obj-EB(OBJECT) =over 4 Add a new diagnostic message (a OODoc::Text::Diagnostic object) to the list already in this object. You can not look for a message because these names are without use. =back $obj-EB =over 4 Returns a list of all diagnostics. =back $obj-EB(OBJECT) =over 4 See L =back $obj-EB =over 4 See L =back $obj-EB =over 4 See L =back $obj-EB(NAME) =over 4 Does a little more thorough job than L bu searching the inherited options for this subroutine as well. =back $obj-EB =over 4 See L =back $obj-EB