Category: Ruby

  • Ruby Operators

    by

    in

    Ruby has a built-in modern set of operators. Operators are a symbol which is used to perform different operations. For example, +, -, /, *, etc. Types of operators: Unary Operator Unary operators expect a single operand to run on. Operator Description ! Boolean NOT ~ Bitwise complement + Unary plus Example In file hello.rb,…

  • Hello Ruby Program

    by

    in

    Now we will write a simple program of Ruby. Before writing Hello World program, we are assuming that you have successfully installed Ruby in your system. Requirement for Hello Ruby Program Creating Hello Ruby Program 1) Use any text editor and create a hello.rb file. Write the following code, 2) Connect Ruby path to the…

  • Ruby Installation

    by

    in

    Ruby is a cross platform programming language. It is installed differently on different operating systems. We will install Ruby on Linux Ubuntu using package manager. Step 1 Choose the package management system which you want to install from the link  Step 2 Debian GNU/Linux and Ubuntu use the apt package manager. Use the following command: Here, by default, the ruby-full…

  • Ruby vs Python

    by

    in

    Similarities They both are high level language. They both are server side scripting language. Both are used for web applications. Both work on multiple platforms. Both have clean syntax and are easily readable. Both use an interactive prompt called irb. Objects are strongly and dynamically typed. Both use embedded doc tools. Differences Terms Ruby Python…

  • Features of Ruby

    by

    in

    Ruby language has many features. Some of them are explained below: Object Oriented Ruby is purely object oriented programming language. Each and every value is an object. Every object has a class and every class has a super class. Every code has their properties and actions. Ruby is influenced with Smalltalk language. Rules applying to…

  • What is Ruby

    by

    in

    Ruby is a dynamic, open source, object oriented and reflective programming language. Ruby is considered similar to Perl and Smalltalk programming languages. It runs on all types of platforms like Windows, Mac OS and all versions of UNIX. It is fully object oriented programming language. Everything is an object in Ruby. Each and every code…

  • Ruby Tutorial

    by

    in

    Ruby tutorial provides basic and advanced concepts of Ruby. Our Ruby programming tutorial is designed for beginners and professionals both. Ruby is an open-source and fully object-oriented programming language. Our Ruby tutorial includes all topics of Ruby such as installation, example, operators, control statements, loops, comments, arrays, strings, hashes, regular expressions, file handling, exception handling,…