To understand Ruby, you will have to understand the concepts that are fundamental to Ruby. These concepts are:
Classes
Inheritance
Module
Data Types
Blocks and Iterators
Exception Handling
Data Structures
Of these, the first two are Object-Oriented concepts. Let us have a look at each of these concepts and the way Ruby implements them. However, you will have to keep one point in mind. The discussion in this section is not 'the definitive guide' to Ruby. The focus of this section is to provide you with the fundamentals of Ruby so that you can understand RoR better.
Classes, attributes, methods, and objects are the core of any Object-Oriented language. How they are implemented and how they can be used, differs from language to language. How they are implemented in Ruby?—that's what I am going to discuss now.