Ruby Coding Conventions
Table of Contents
  • File/directory name is lower case of class/module name with .rb extension.

Example: Foo class has name foo.rb

  • Method names should begin with a lowercase letter (or an underscore)
  • A constant name starts with an uppercase letter followed by name characters.
  • use underscores to separate words in a multiword method or variable name
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.