kit-doc edge

Docstring module
Kit::Doc::Services::Docstring
View Source

Namespace for Docstring related operations.


Link to this section Summary ⚠️ Private APIs are currently hidden.


Link to this section Class methods 6 ⚠️ Private APIs are currently hidden.

Get full "Docstring" for object.

Link to this method

.get_content_toc(content:)

View Source

Generate a "Table of Content" hash based on html headers (h1 / h2 / h3 / etc)

Only the two first levels are used by the template.

Link to this method

.get_html_toc(content:)

View Source

Generate an html "Table of Content".

Link to this method

.li_to_hash(node:)

View Source APIPrivate
⚠️ This method is part of a private API. You should avoid using it as it may be removed or be changed in the future.

Flatten the DOM headers hierarchy recursively

Get Docstring summary for object.

Get a hash table of content for a given object.