Created
March 31, 2013 10:19
-
-
Save danidiaz/5280201 to your computer and use it in GitHub Desktop.
Ruby RDoc
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
# This is a class. | |
# | |
# http://rdoc.rubyforge.org/RDoc/Markup.html | |
class Foo | |
# This is a method | |
# | |
# = This is a header | |
# | |
# This is below the header | |
# | |
# Outside the header | |
def initialize(c1,c2) | |
@c1,@c2=c1,c2 | |
end | |
def sumify() | |
@c1+@c2 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment