Is there a document for Ruby that describes some preferred conventions for whitespace, indentation and other style issues?
I found Python's PEP 8 to be very helpful and am looking for something similar for Ruby.
Is there a document for Ruby that describes some preferred conventions for whitespace, indentation and other style issues?
I found Python's PEP 8 to be very helpful and am looking for something similar for Ruby.
There's nothing official, but the two common guidelines are:
Of the two, I find the second one more informative.
I wrote some thoughts a while back at http://www.pathf.com/blogs/ruby-and-rails-style-guide/