ruby / ruby/rdoc

rdoc does not track C externs for classes/modules

Open
#59 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature Request
Dominant language
Ruby
Stars
930
Forks
465
Avg merge
3d 10h
Merged PRs (30d)
27

Description

When a *.c file describes a class, with methods, etc., and a *.rb exists owning the same class name, then the *.rb wins completely.

Example: ext/fiddle/closure.c and ext/fiddle/lib/fiddle/closure.rb
The *.c includes two methods, but when the documentation is generated, on the the attributes described in the *.rb are present for the Fiddle::Closure class.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce documentation generation for ext/fiddle/closure.c and ext/fiddle/lib/fiddle/closure.rb, then trace how RDoc combines class definitions from the two files. Done means the generated Fiddle::Closure documentation includes the methods described in the C file as well as the Ruby attributes.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, ruby
Domain
documentation
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.