# File lib/yard/generators/tags_generator.rb, line 9 def sections_for(object) sections = [ :header, [ :example, :param, :yield, :yieldparam, :yieldreturn, :return, :raise, :todo, :author, :version, :since, :see ] ] if object.tags(:overload).size == 1 size = sections.last.size sections.last.reverse.each_with_index do |item, index| sections.last[size - index - 1, 1] = [:with_overload, [item]] end end sections end