Skip to content

Instantly share code, notes, and snippets.

@kernelsmith
Created January 26, 2014 22:07
Show Gist options
  • Select an option

  • Save kernelsmith/8640084 to your computer and use it in GitHub Desktop.

Select an option

Save kernelsmith/8640084 to your computer and use it in GitHub Desktop.
idiomatic ruby code organization/order
1) extend and include
2) constants
3) attribute macros
4) other macros (if any)
5) public class methods
6) public instance methods
7) protected and private methods near the end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment