Skip to content

Instantly share code, notes, and snippets.

@cowboy-cod3r
Created November 22, 2013 03:49
Show Gist options
  • Save cowboy-cod3r/7594518 to your computer and use it in GitHub Desktop.
Save cowboy-cod3r/7594518 to your computer and use it in GitHub Desktop.
Ruby Class Template
class MyPackage
# == Description
# A Description of the class
class MyClass
# Accessors
attr_accessor :attr1, :attr2
# ==== Description
# Constructor
def initalize()
# Do Stuff
end
# ==== Description
# A Description of the method
#
# ==== Arguments
# * +arg1+ - [String] - Description
#
# ==== Raises
# Exception
#
# ==== Returns
# [String]
public
def my_method
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment