How to prevent Yard from using @return content as a description?

I have nothing to write about this function other than specifying what it outputs. If Yard does not find a description, it uses the contents instead @return. Is there any way to prevent this? I want to avoid stupid duplication, as you see in the example below.

##
# @return [Array<Hash>]
#
#   an array of hashes. Example output:
#
#     [
#       {:name=>"FORNEBU", :municipality=>"BÆRUM", :county=>"AKERSHUS"},
#       {:name=>"FORSAND", :municipality=>"FORSAND", :county=>"ROGALAND"}
#     ]
#

Screen shot

+4
source share

Source: https://habr.com/ru/post/1538761/


All Articles