Ruby – Variables, Constants and Literals
Variables are the memory locations, which hold any data to be used by any program. There are five types of variables supported by Ruby. You already have gone through a…
Variables are the memory locations, which hold any data to be used by any program. There are five types of variables supported by Ruby. You already have gone through a…
Ruby is a perfect Object Oriented Programming Language. The features of the object-oriented programming language include − Data EncapsulationData AbstractionPolymorphismInheritance These features have been discussed in the chapter Object Oriented Ruby.…
Let us write a simple program in ruby. All ruby files will have extension .rb. So, put the following source code in a test.rb file.Live Demo #!/usr/bin/ruby -w puts "Hello, Ruby!";…
Local Environment Setup If you are still willing to set up your environment for Ruby programming language, then let's proceed. This tutorial will teach you all the important topics related…
Ruby is a scripting language designed by Yukihiro Matsumoto, also known as Matz. It runs on a variety of platforms, such as Windows, Mac OS, and the various versions of…