Ruby Tutorial Roadmap
Learn Ruby programming with this complete Ruby tutorial roadmap. Covers Ruby basics, control statements, OOP concepts, modules, collections, exception handling, multithreading, and advanced Ruby topic
Ruby Overview
Ruby is a pure object-oriented programming language created by Yukihiro Matsumoto, commonly known as Matz within the Ruby community, in the mid-1990s in Japan. In Ruby, almost everything is treated as
Basic Concepts
Ruby Keywords Keywords or reserved words are special words in a programming language that have predefined meanings and are used for certain internal processes. These words cannot be use
Control Statement
Ruby Decision Making (if, if-else, if-else-if, ternary) Decision-making in programming is much like making choices in real life. In a program, certain blocks of code are executed based on whether a sp
Ruby Methods
A method in Ruby is a reusable block of code that performs a specific task and optionally returns a value. Methods help reduce repetition by letting you define logic once and call it multiple times. I
OOP Concepts in Ruby
Object-Oriented Programming (OOP) is a way of organizing code around objects, which represent real-world entities. In Ruby, everything is an object—including numbers, strings, arrays, and even classes
Exceptions
Ruby Exceptions In programming, predicting errors and handling them effectively is crucial. Exceptions are errors that occur during runtime and disrupt the normal flow of a program. Handling exception
Ruby Regex
Ruby Regular Expressions A regular expression, or regex, is a sequence of characters that forms a search pattern. It’s mainly used for pattern matching within strings. In Ruby, regular expressions (re
Ruby Classes
Ruby Float Class In Ruby, the Float class is a subclass of the Numeric class. Objects of the Float class represent real numbers using the system’s native double-precision
Collections
Ruby Arrays An array is a collection of elements, which can be of the same or different types, stored in contiguous memory locations. The concept behind arrays is to group multiple elements together u
Ruby Threading
Ruby Introduction to Multi-threading Multi-threading in Ruby is a powerful feature that enables the concurrent execution of different parts of a program, optimizing CPU usage. Each part of the program
Miscellaneous
Ruby Types of Iterators Iterators in Ruby allow you to loop through collections like arrays, hashes, and ranges. Ruby provides several built-in methods to iterate over these collections. Common Iterat