summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rdoc/parsers/parse_c.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rdoc/parsers/parse_c.rb b/lib/rdoc/parsers/parse_c.rb
index 18f5165f25..19b5d443f6 100644
--- a/lib/rdoc/parsers/parse_c.rb
+++ b/lib/rdoc/parsers/parse_c.rb
@@ -521,7 +521,8 @@ module RDoc
type = "singleton_method"
end
meth_obj = AnyMethod.new("", meth_name)
- meth_obj.singleton = type == "singleton_method"
+ meth_obj.singleton =
+ %w{singleton_method module_function}.include?(type)
p_count = (Integer(param_count) rescue -1)