We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8cc4dd commit 7bb780dCopy full SHA for 7bb780d
docs_gen/make_docs.rb
@@ -30,13 +30,15 @@ def mobj_to_md obj
30
out += "> #{obj.signature}\n\n"
31
out += "#{obj.docstring}\n\n"
32
33
+ # puts "Processing: #{obj.name} #{method_path}"
34
35
indent = space 5
36
params = obj.tags.select { |tag| tag.tag_name == 'param' }
37
if !params.empty?
38
out += "__Parameters:__\n\n"
39
params.each do |param|
- out += indent + "[#{param.types.join ', '}] "
40
+ param_types = param.types ? "[#{param.types.join ', '}] " : ''
41
+ out += indent + param_types
42
out += "#{param.name} - #{param.text}\n\n"
43
end
44
0 commit comments