ruby / rdoc

RDoc produces HTML and online documentation for Ruby projects.
https://ruby.github.io/rdoc/
Other
844 stars 439 forks source link

(master) Ancestors list shows C symbol name instead of class #1205

Open flavorjones opened 1 week ago

flavorjones commented 1 week ago

Hi! I love the ancestors list, but I found an edge case with how it handles C extensions.

Take a look at the sidebar at https://nokogiri.org/rdoc/Nokogiri/HTML4/Document.html which was generated from 50dda134:

image

The actual ancestors list is:

Nokogiri::XML::Document
+- Nokogiri::XML::Node
   +- Object
      +- BasicObject

but instead it's showing cNokogiriXmlNode which is the C symbol that references the Nokogiri::XML::Node class (from ext/nokogiri/xml_node.c).

I haven't had time to dig into this yet, but wanted to raise an issue in case someone has the time to look.