Previous: Communication Up: Table of Contents Next: Ruby

Coding Style Guide

The following guidelines aim to keep the Rubinius codebase maintainable. When in doubt about a guideline here, ask us in the #rubinius IRC channel on irc.freenode.net.

All Code

C++ Code

Ruby Code

Kernel Code

The primary guideline for all kernel code is simple and efficient. Simple code is often more efficient and generally more comprehensible. There should be no metaprogramming code in bootstrap. Use the #attr_xxx methods throughout the kernel source. Also, alias methods using the #alias_method call next to the method definition. Specify private methods with the private :sym method next to the method definition. Remember that the versions of the methods listed above in the alpha stage take a single, symbol argument.

Documentation

Previous: Communication Up: Table of Contents Next: Ruby

Tweet at @rubinius on Twitter or email community@rubini.us. Please report Rubinius issues to our issue tracker.