The following code snipped:
# ansi console color constants
COLOR_BLACK = 0
COLOR_RED = 1
COLOR_GREEN = 2
COLOR_YELLOW = 3
COLOR_BLUE = 4
COLOR_MAGENTA = 5
COLOR_CYAN = 6
COLOR_WHITE = 7
# functional color aliases
COLOR_WARN = COLOR_YELLOW
COLOR_ALERT = COLOR_RED
COLOR_CONFIRM = COLOR_GREEN
COLOR_NOTE = COLOR_BLUE
gets reported as 10 undocumented constants. Is there a way to “comment constants by groups” in RDoc? Documenting each constant separately would be slightly idiotic, and I don’t want to omit them from doc.
I got the following answer per mail from a rdoc-developer, after i suggested implementing a
:constlist:directive, that would getCOLOR_BLACK = 0simply documented as COLOR_BLACK(0):