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 b878786 commit 35322e4Copy full SHA for 35322e4
support/yard_full_types.rb
@@ -16,9 +16,9 @@ def signature_types(meth, link = true)
16
if meth.tag(:return) && meth.tag(:return).types
17
types = meth.tags(:return).map {|t| t.types ? t.types : [] }.flatten.uniq
18
first = link ? h(types.first) : format_types([types.first], false)
19
- if types.size == 2 && types.last == 'nil'
20
- type = first + '<sup>?</sup>'
21
- elsif types.size == 2 && types.last =~ /^(Array)?<#{Regexp.quote types.first}>$/
+ # if types.size == 2 && types.last == 'nil'
+ # type = first + '<sup>?</sup>'
+ if types.size == 2 && types.last =~ /^(Array)?<#{Regexp.quote types.first}>$/
22
type = first + '<sup>+</sup>'
23
# elsif types.size > 2
24
# type = [first, '...'].join(', ')
0 commit comments