Created
January 19, 2012 12:47
-
-
Save ql/1639920 to your computer and use it in GitHub Desktop.
yard-sinatra route duplication example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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