You can do either. Generating classes would certainly be the easier
route, as there are already class templates and code to generate
them, but it's possible to make a new object (like
ControllerObject), and this might provide you with more control in
the end. If that's what you want to do, go for it!
If you go the controller route, you do have to extend the
YARD::CLI::Yardoc#all_objects method to include the :controller
object when generating HTML files. See
https://github.com/lsegal/yard/blob/master/lib/yard/cli/yardoc.rb#L308-L310
You probably want to alias chain it so as not to step on the toes of
other plugins. It might look something like:
class YARD::CLI::Yardoc
def all_objects_with_controller
all_objects_without_controller + Registry.all(:controller)
end
alias all_objects_without_controller all_objects
alias all_objects all_objects_with_controller
end
Hope that helps!
Loren