Ruby Programming – Built-in Classes – String class
Everything is an object in Ruby. That means, each symbol or variable you create must be an object of a Class. For example, if you...
Ruby Programming – Inheritance in Ruby
Inheritance is one of the great feature in Object Oriented Programming. Ruby supports inheritance. Inheritance allows to inherit the features of the base classes to...
Ruby Programming – How to generate Getter and Setter methods automatically?
In our previous Article, we have discussed about Getter and Setter methods in Ruby. We no need to add these methods explicitly; instead, Ruby provides...
Ruby Programming – Getter and Setter methods
Ruby allows to define class and instance variables. Ruby doesn’t allow to access the variables of the class directly; instead we can use methods to...
Ruby Programming – Classes – How to create class methods?
We have discussed an introduction to the Classes in Ruby in my previous Article “Ruby Programming – An Overview on Classes“. There we have seen...
Ruby Programming – An Overview on Classes
As we discussed in our previous Articles, Ruby is a pure object-oriented language. That means, everything is an object of a class in Ruby. Non-object...
Ruby Programming – The Basics of Ruby
Ruby is a pure object-oriented programming language. That means, everything is an object in Ruby. For example, 3 is an object of Number class. If...
Ruby Programming – Interactive shell
Once we installed Ruby, we will get one powerful command line interactive Ruby-programming environment called irb (Interactive Ruby). irb is a command line interpreter allowed to...
Ruby Programming: An Introduction
Ruby is a popular open source, cross-platform, object-oriented, dynamic, scripting, interpreted programming language. It was invented in the year 1993 by Yukihiro Matsumoto (Matz). Ruby...