Skip to content

Instantly share code, notes, and snippets.

@ql
Created January 19, 2012 12:47
Show Gist options
  • Save ql/1639920 to your computer and use it in GitHub Desktop.
Save ql/1639920 to your computer and use it in GitHub Desktop.
yard-sinatra route duplication example
source:
# The API
#
class Api
##
# Says hello
#
get '/hello' do
body "hello"
end
end
command:
yardoc 'test.rb' -e yard-sinatra -r README.md --title "Test"
versions:
yard (0.7.4)
yard-sinatra (1.0.0)
yard output:
Instance Method Details
- (Object) /hello
Says hello
[View source]
- (Object) GET '/hello'
Says hello
[View source]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment