Use fully qualified name

pull/2404/head
Jon Börjesson 6 days ago
parent 6ff3607361
commit 5fef97636a
No known key found for this signature in database

@ -16,8 +16,12 @@ module Docs
name
else
return at_css('h1').content.strip unless at_css('.type-name')
name = at_css('.type-name').children.last.content.strip
name = at_css('.type-name').children.reject { |n| n.matches?('.kind') }
name.map! { |n| n.text.strip }
name.reject! &:empty?
name = name.join
name.remove! %r{\(.*\)}
name.strip!
name
end
end

Loading…
Cancel
Save