开发者

Documenting Sinatra routes for extensions (Yard::Sinatra doesn't work)

开发者 https://www.devze.com 2023-02-04 05:40 出处:网络
I am writing a moderate-sized Sinatr开发者_JAVA百科a app that I break into extensions, placed in ./lib/extensions/. I want to document each route, but Yard::Sinatra only documents the routes defined i

I am writing a moderate-sized Sinatr开发者_JAVA百科a app that I break into extensions, placed in ./lib/extensions/. I want to document each route, but Yard::Sinatra only documents the routes defined in the main application.rb file. Can I configure Yard::Sinatra to do something or do I have to write my own plugin?


You might want to take a look into Cachafla's YARD::Sinatra version of the gem: gem install cachafla-yard-sinatra

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号