You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your Document-const calls are documenting a non-existent const called WXColor::Black, not WX::Color::Black. This has to do the way YARD parses the full path out of unqualified const names. Note you can more easily workaround this with inline documentation, instead of Document-const:
voidInit_WXColor(VALUErb_mWX)
{
#if0rb_mWX=rb_define_module("WX");
#endifrb_cWXColor=rb_define_class_under(rb_mWX,"Color",rb_cObject);
#if0// Predefined color constantrb_define_const(rb_cWXColor,"BLACK",wrap(wxBLACK));
// Predefined color constantrb_define_const(rb_cWXColor,"BLUE",wrap(wxBLUE));
// Predefined color constantrb_define_const(rb_cWXColor,"CYAN",wrap(wxCYAN));
// Predefined color constantrb_define_const(rb_cWXColor,"GREEN",wrap(wxGREEN));
// Predefined color constantrb_define_const(rb_cWXColor,"YELLOW",wrap(wxYELLOW));
// Predefined color constantrb_define_const(rb_cWXColor,"LIGHT_GREY",wrap(wxLIGHT_GREY));
// Predefined color constantrb_define_const(rb_cWXColor,"RED",wrap(wxRED));
// Predefined color constantrb_define_const(rb_cWXColor,"WHITE",wrap(wxWHITE));
#endif
}
Marking this as closed since YARD is technically doing what it is supposed to do here.
SampleCode:
result in
while the constants are documented they are counted twice.
imo it should be prevented that yard does count them more than once
and yes both are needed, because i cant define the constants at require time and without the
#if 0
rdoc does not find the constantshm that is low prioity because i found a way around it, until its fixed in yard
The text was updated successfully, but these errors were encountered: