Ruby utilizes unique conventions in naming objects that is the first character of the identifier is used in the determination of its purpose. Some of the words are reserved hence should not be used as method, class variable or module name. The letters written in the lower case represent the characters from “a” through “z”. The letters written in uppercase represent the characters “A” through “Z”. On the other hand a digit means “0” through “9”. A name is written by taking an uppercase letter, lowercase letter and an underscore followed by the characters that represent the names. In the variable or multiword method, the underscores are used to separate the words. The Ruby naming method involves writing the constants in uppercase then separating the words using the underscores. The Ruby class as well as the module names are also constants but they are usually written down with the use of initial capital letters and a camel case. The symbols are constant names that do not require pre-declaration.
The Ruby naming convention is also composed of variables. The types of variables include the local variable, global variable, instance variable as well as the class variable. There are some methods that are associated with the Ruby naming convention. The methods are composed of the name of the method which starts with an underscore or lowercase letter. It is also composed of a parameter that starts with a lowercase letter or an underscore, class that starts with an uppercase letter and the module that starts with an uppercase letter. The Ruby naming convention is also composed of constants which includes a constant that starts with an uppercase letter, symbols that start with a colon. It is also composed of reserved words which are also useful in the naming and making descriptions.
Websites
http://www.marcelofossrj.com/guide/2017/07/15/ruby-naming.html
http://rubylearning.com/satishtalim/ruby_names.html
https://gist.github.com/alexpchin/f5d2be2ef3735889d315
https://jtway.co/how-to-name-variables-and-methods-in-ruby-b4a21fb66c4d
The websites have wealth of information that will help in dealing with the topic in question. However, I prefer the first website because of the fact that it is comprehensive and addresses important factors of the topic. It also includes important information that will enable the reader to have a better understanding of the Ruby naming convention.