deivid-rodriguez / byebug

Debugging in Ruby 2
BSD 2-Clause "Simplified" License
3.34k stars 328 forks source link

Unclobber YARD docs generation #746

Closed firelizzard18 closed 4 years ago

firelizzard18 commented 4 years ago

Replacing Document-class: Byebug with Document-module: Byebug in ext/byebug/byebug.c fixes yard doc. Without this, it appears that YARD clobbers everything except what's in the C files. At the time of writing, https://rubydoc.info/gems/byebug contains only the following:

This is missing almost all the Ruby classes. This change un-confuses YARD, resulting in documentation for the Ruby code.