ObjectDojo is a utility to practice Object oriented programming using the rules described in the article "Object Calisthenics" by JeffBay:
www.xpteam.com/jeff/writings/objectcalisthenics.rtf
- One level of indentation per method
- Don’t use the ELSE keyword
- Wrap all primitives and Strings(Not implemented)
- First class collections
- One dot per line
- Don’t abbreviate (Not implemented)
- Keep all entities small
- No classes with more than two instance variables
- No getters/setters/properties
To install object dojo
$ gem install object_dojo
Run the command line utility dojo with path to code
$ dojo /path/to/code
The rules can be configured by passing command line options. To get the full list of command line options
$ dojo -h
The current version supports only Ruby.