NLdoc.Test.DocumentGenerator (NLdoc.Spec v3.1.1)
View SourceTODO: Write module documentation
TODO: determine what opts can be given.
Summary
Functions
Recursively count the number of objects in a document, or under a given spec object. The count includes the object itself and all its children.
Functions
@spec count_objects(NLdoc.Spec.object() | map()) :: integer()
Recursively count the number of objects in a document, or under a given spec object. The count includes the object itself and all its children.
The given argument is ideally an NLdoc.Spec.object()
, but can also be a map, as long as
its structure is similar to the NLdoc.Spec.object()
structure, particularly regarding the children.
@spec generate(Keyword.t()) :: NLdoc.Spec.Document.t()