如何編寫在.each塊中收集的定義的文檔?我的特例是Middleman,但我認爲這個問題更加普遍,而Google今天的表現令人失望。 例如: def manipulate_resource_list(resources)
resources.each do |resource|
# Provides a greeting
# @return [string] Re
我正在處理包含ActiveSupport的可配置模塊的代碼,並試圖記錄配置訪問器。 任何人都知道如何在YARD Tomdoc中這麼做? 我試過以下,但它似乎沒有呈現文檔中的任何東西。 class MyConf
include ActiveSupport::Configurable
# Is this configuration awesome? (defaults: tru
如果我有一個返回值這個函數: render :json => @orders.as_json(include: [{:user => {only: :id}}], :only => [:id, :status_id])
我記錄這樣的: # @return [JSON] includes the id, the order status id and the id of the associat