Classes and modules begin with an upper case letter. : Reserved words « Language Basics « Ruby






Classes and modules begin with an upper case letter.


This is actually enforced by Ruby's interpreter. 
Each word in a class name begins with an upper case (unless it's part of an acronym):

module Observable
module ParseDate
class StringInputMethod
class StringReplace
class XMP

 








Related examples in the same category

1.Ruby's reserved words
2.If a method name ends with a question mark (?), as in eql?, then the method returns a Boolean
3.If a method name ends in an exclamation point (!), as in delete!
4.If a method name ends in an equals sign (=), as in family_name=