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"}
# ]
#

Hubro source
share