ExTorch.DelegateWithDocs (extorch v0.1.0-pre0)
Public API documentation for DelegateWithDocs
. This module is based on
https://github.com/danielberkompas/delegate_with_docs
Link to this section 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.
Link to this section Functions
Overrides Kernel.defdelegate/2
with defdelegate/2
.
Delegates a function to another module, copying its docs.
Use exactly like Kernel.defdelegate/2
.
Link to this function
get_doc(module, arg)
Get the doc string for a given module and function.
example
Example
DelegateWithDocs.get_doc(MyModule.Internal, {:my_func, 2})
Link to this function
get_specs(module, arg)
Get the typespecs for a given function as an AST.