Skip to content

Commit

Permalink
doc: hack to trick rdoc into processing html4_document.c
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Dec 8, 2024
1 parent 373baf8 commit 7928194
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ext/nokogiri/html4_document.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,12 @@ rb_html_document_type(VALUE self)
void
noko_init_html_document(void)
{
/* this is here so that rdoc doesn't ignore this file. */
/*
mNokogiri = rb_define_module("Nokogiri");
mNokogiriHtml4 = rb_define_module_under(mNokogiri, "HTML4");
*/

assert(cNokogiriXmlDocument);
cNokogiriHtml4Document = rb_define_class_under(mNokogiriHtml4, "Document", cNokogiriXmlDocument);

Expand Down

0 comments on commit 7928194

Please sign in to comment.