Skip to content

Instantly share code, notes, and snippets.

@kedarmhaswade
Created January 9, 2011 05:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kedarmhaswade/771430 to your computer and use it in GitHub Desktop.
Save kedarmhaswade/771430 to your computer and use it in GitHub Desktop.
Example class showing usage of yardoc ...
#!/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