Skip to content

Instantly share code, notes, and snippets.

@stouset
Created October 6, 2013 23:46
Show Gist options
  • Save stouset/6860605 to your computer and use it in GitHub Desktop.
Save stouset/6860605 to your computer and use it in GitHub Desktop.
class Name
CONSTANT_1 = :a
CONSTANT_2 = :b
include Module
attr_accessor :accessor1
attr_accessor :accessor2
def self.method(*args)
# ...
end
def initialize(*args)
# ...
end
def method(*args)
# ...
end
protected
attr_accessor :protected_attribute
def protected_method(*args)
# ...
end
private
attr_accessor :private_attribute
def private_method(*args)
# ...
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment