ExTorch.DelegateWithDocs
(extorch v0.2.0)
Copy Markdown
Public API documentation for DelegateWithDocs. This module is based on
https://github.com/danielberkompas/delegate_with_docs
Summary
Functions
Overrides Kernel.defdelegate/2 with defdelegate/2.
Delegates a function to another module, copying its docs.
Use exactly like Kernel.defdelegate/2.
Get the doc string for a given module and function.
Get the typespecs for a given function as an AST.
Functions
Overrides Kernel.defdelegate/2 with defdelegate/2.
Delegates a function to another module, copying its docs.
Use exactly like Kernel.defdelegate/2.
Get the doc string for a given module and function.
Example
DelegateWithDocs.get_doc(MyModule.Internal, {:my_func, 2})
Get the typespecs for a given function as an AST.