Document Macro generated Functions?

Hi All,

I’m looking to add some extra documentation to this Stripe API that looks pretty good ( However a lot of the methods are generated with Macros in the use Stripe.API calls:

defmodule Stripe.Account do
  use Stripe.API, [:create, :retrieve, :update, :list, :delete]

This generates a load of methods in the file clearly, but it would be nice to provide documentation for each method with an example of actually using stripe. Ideally I’d like the following:

@docfor :create """Here are the docs..."""

Is this possible?

1 Like

I havn’t tried it, but possibly would do it?