Skip to content

Instantly share code, notes, and snippets.

@danidiaz
Created March 31, 2013 10:19
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 danidiaz/5280201 to your computer and use it in GitHub Desktop.
Save danidiaz/5280201 to your computer and use it in GitHub Desktop.
Ruby RDoc
# 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