Created
January 9, 2011 05:01
-
-
Save kedarmhaswade/771430 to your computer and use it in GitHub Desktop.
Example class showing usage of yardoc ...
This file contains hidden or 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
#!/usr/bin/env ruby | |
class Foo | |
# This is m1. It gets documented correctly. | |
# @param [Integer] id an integer representing unique ID | |
# @param [String] name string representing the name | |
# @see #m2 | |
def m1(id, name) | |
end | |
=begin | |
This is m2. It does not get documented correctly. | |
@param [String] name string representing the name | |
@param [Integer] id an integer representing unique ID | |
@see #m1 | |
=end | |
def m2(name, id) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment