diff options
author | Mike Dalessio <[email protected]> | 2021-10-11 13:44:37 -0400 |
---|---|---|
committer | git <[email protected]> | 2021-10-16 01:39:36 +0900 |
commit | 7aec65add42d20ba8d70ad33c7b1e8978007e29e (patch) | |
tree | af38792b70ba5e7f217c56cf10847b3005df0252 /lib/rdoc/parser/c.rb | |
parent | c322069a670a1ea2077429d9e7146e93e8e92eae (diff) |
[ruby/rdoc] feat: add support for :category: on C functions
https://github.com/ruby/rdoc/commit/45c92005fe
Diffstat (limited to 'lib/rdoc/parser/c.rb')
-rw-r--r-- | lib/rdoc/parser/c.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/rdoc/parser/c.rb b/lib/rdoc/parser/c.rb index 111f6e2091..b89aaa6dcc 100644 --- a/lib/rdoc/parser/c.rb +++ b/lib/rdoc/parser/c.rb @@ -1030,7 +1030,12 @@ class RDoc::Parser::C < RDoc::Parser meth_obj.record_location @top_level + + if meth_obj.section_title + class_obj.temporary_section = class_obj.add_section(meth_obj.section_title) + end class_obj.add_method meth_obj + @stats.add_method meth_obj meth_obj.visibility = :private if 'private_method' == type end |