2

我在我的.yardopts文件中创建了一些自定义标签,如下所示:

--name-tag optfield:"Field that is not required to be filled out by the user."
--name-tag nonfield:"Parameter that is not a field to be filled out by the user."

当我在网络浏览器中查看它们时,它们显示得非常好,但是当我尝试查看一个类时,yri我没有看到我的自定义标签正在显示。

比如这个类

#This is a boring class
class Boring
    # This function is the index.
    # @param required_field [String] Required!
    # @optfield optional_argument [String] Totally not required dude.
    # @nonfield webData [WebData] Not even an option.
    def index(optional_argument = "", webData = $wedData)
    end
end

yri在我运行时显示为这样yri Boring#index

------------------------------------------------ Method: #index (Boring)
                                               (Defined in: YardTest.rb)

    boring.index(optional_argument = "", webData = $wedData) -> Object 
------------------------------------------------------------------------

    This function is the index. 

Parameters:
-----------

    (String) required_field - Required!

有没有办法配置yri显示我的自定义标签?

4

0 回答 0