ABSTRACT

Ruby is a fundamentally object-oriented language, and everything appears to Ruby as an object. Every value in Ruby comes through as an object, including the most basic components: strings, numbers, and true/false features. Even a class itself becomes an object that is an instance of the class. Numbers and Strings (which is just another name for “texts”) are some of the most basic data types that the users deal with in Ruby on a regular basis. They could also be viewed as lego bricks that the users need to master handling in order to get access to more interesting features, such as how objects, classes, and methods relate to each other. A Symbol must be viewed as one of the most basic Ruby objects the users can create that has a name and an internal ID. Symbols are useful because a given symbol name refers to the same object throughout a Ruby program.