Ruby: Style guide

Essential reading:

https://github.com/bbatsov/ruby-style-guide

For example, use 2 spaces per indent:

https://github.com/bbatsov/ruby-style-guide#source-code-layout

Here’s how to set it in Sublime Text:

http://mlo.io/blog/2012/08/23/language-specific-indents-sublime.html

and do auto formatting:

http://nicksantan.com/blog/2012/12/adding-auto-format-code-indenting-to-sublime-text-2/

Leave a Reply

Your email address will not be published. Required fields are marked *