yard

    2热度

    1回答

    考虑下面的ruby文件,foo.rb: # this is a module comment module A # this is a constant comment B = 'hi' # this is a class comment class C # this is a method comment # @param [Stri

    2热度

    1回答

    在official YARD docs,有下面的例子: # @overload set(key, value) # Sets a value on key # @param key [Symbol] describe key param # @param value [Object] describe value param # @overload set(value) # Sets a

    0热度

    1回答

    我有一个不纯的功能,像这样: # Impure function: Sets the status for a report_schedule, uses last_sent to # calculate status # @param report_schedule [Hash] # @return [String] Non-useful: value of last_sent that

    2热度

    1回答

    我在自动化项目中使用黄瓜,小黄瓜和特征文件进行测试。这是一个java项目。所以我们的步骤定义文件是使用gherkin标签以java编写的。我想从java和功能文件生成文档(可能是html),如yard-cucumber。在阅读/扫描功能和步骤定义(用ruby编写)文件后,Yard-cucumber生成文档。我使用类似的方法为Java使用jruby。但它不扫描java文件并给出错误。 有没有任何工具

    0热度

    1回答

    [email protected]:~/wasteland/sokol_dev$ yard /usr/local/rvm/gems/ruby-2.2.0/gems/yard-0.9.5/lib/yard/core_ext/file.rb:56:in `initialize': Permission denied @ rb_sysopen - .yardoc/processing (Errno::

    0热度

    1回答

    我有一个看起来像这样的方法: def get_endpoint(params: {}) end 我想这个方法的调用者能在几个可选的参数传递。 我想写YARD文档来支持这个,如果我没有使用关键字参数,我会使用@option声明。 然而,YARD自己的文档说: Note: For keyword parameters, use @param, not @option. 所以,我想: # @par

    0热度

    1回答

    当试图创建我的围栏控制器的文档和使用的参数时,由于围场似乎期待,参数作为方法参数存在,所以我陷入困境。 # Renders a list of items # @param params [Hash] the search parameters # @option params [String] 'info' Only return items with this specific info

    0热度

    1回答

    我只是想为我的宝石的文件,并在运行的是RDoc的或院子里,我得到了错误 undefined method `intern' for []:Array 这是怎么回事?我试着重新安装所有东西,而且我使用Ruby 2.3.1。另外,根据我的理解,你不能在数组中使用实习,那么为什么rdoc和院子会试图做到这一点? 编辑 现在我已经进一步调查,并有事情做与我的特定语法,因为我的设置适用于其他文件,只是不

    4热度

    1回答

    在YARD中,当参数类型或返回类型是同一项目中的类时,它会自动创建指向该类页面的链接。现在我想对Ruby核心类(或任何外部类)做同样的事情,说Integer。我希望YARD将任何Integer类型链接到http://ruby-doc.org/core-2.2.3/Integer.html。通常我希望YARD尝试链接 "http://ruby-doc.org/core-2.2.3/#{cls.nam

    0热度

    1回答

    使用RubyMine,在rspec测试中,有没有办法让RubyMine知道创建的对象的类型(用于自动完成和'找不到“警告抑制 如: # @yieldreturn [Tibbees::Tibbee] let!(:tibbee) { create(:tibbee, canonical_vendible: article_vendible, owner: tibbee