Last active
November 5, 2016 02:35
-
-
Save pazdera/a99cc26fb5c62cdb1a92 to your computer and use it in GitHub Desktop.
Basic Yard Syntax (contributions welcome)
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
# Quick summary of the function | |
# | |
# {ObjectName#method Optional Title} | |
# {Class::CONSTANT Optional Title} | |
# {#method_inside_current_namespace} | |
# | |
# @see #method | |
# | |
# @param one [Fixnum] First parameter | |
# @param two [Fixnum] Second parameter | |
# @return [Fixnum] Return value | |
def method(one, two) | |
one + two | |
end | |
# This function accepts a block. | |
# | |
# @yield [a, b] Description of block | |
# @yieldparam [Fixnum] argname description | |
# @yieldreturn [Fixnum] description | |
def block | |
yield 1, 2 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment