When trying to generate YARD documentation for a service implemented with Rails, I get the following warning:
$ yardoc
[warn]: in YARD::Handlers::Ruby::MixinHandler: Undocumentable mixin:
YARD::Parser::UndocumentableError for class MyClass
[warn]: in file 'app/models/my_class.rb':7:
7: include Rails.application.routes.url_helpers
My understanding is that YARD cannot determine the mixin's type, since that's only available at runtime.
So what's the right thing to do here? Is it possible to correctly document the mixin? If not, how do I get rid of the warning?