lib/yard/handlers/ruby/method_handler.rb in yard-0.7.4 vs lib/yard/handlers/ruby/method_handler.rb in yard-0.7.5
- old
+ new
@@ -45,10 +45,12 @@
obj.docstring.add_tag(YARD::Tags::Tag.new(:private, nil))
elsif meth.to_s =~ /\?$/
if obj.tag(:return) && (obj.tag(:return).types || []).empty?
obj.tag(:return).types = ['Boolean']
elsif obj.tag(:return).nil?
- obj.docstring.add_tag(YARD::Tags::Tag.new(:return, "", "Boolean"))
+ unless obj.tags(:overload).any? {|overload| overload.tag(:return) }
+ obj.docstring.add_tag(YARD::Tags::Tag.new(:return, "", "Boolean"))
+ end
end
end
if obj.has_tag?(:option)
# create the options parameter if its missing
\ No newline at end of file