Available tutorials in ruby

How to print hello world in Ruby

In this example, you will learn about how to create and print a hello…

How to get length of a string in Ruby

In this tutorial, we will learn how to get the length of a string in…

How to get the first character of a string in Ruby

In this tutorial, we are going to learn about how to get the first…

How to get the last character of a string in Ruby

In this tutorial, we are going to learn about how to get the last…

How to convert a string to lowercase in Ruby

In this tutorial, we are going to learn about how to convert an entire…

How to convert a string to uppercase in Ruby

In this tutorial, we are going to learn about how to convert an entire…

How to remove the first element of an array in Ruby

In this tutorial, we are going to learn about how to remove the first…

How to write Multiline comments in Ruby

In this tutorial, we are going to learn about how to write a multiline…

How to get first n characters of a string in Ruby

In this tutorial, we are going to learn about how to get the first n…

How to check if a string is empty in Ruby

In this tutorial, we are going to learn about how to check if a given…

How to concatenate the strings in Ruby

In this tutorial, we are going to learn about how to concatenate the…

How to convert string to integer in Ruby

In this tutorial, we are going to learn about how to convert an string…

Removing the last n characters of a string in Ruby

In this tutorial, we are going to learn about how to remove the last n…

How to check if a variable is defined in Ruby

In this tutorial, we are going to learn about how to check if a given…

How to check if a array is empty in Ruby

In this tutorial, we are going to learn about how to check if a given…

How to get length of an array in Ruby

In this tutorial, we will learn how to get the length of an array in…

How to remove the last element of an array in Ruby

In this tutorial, we are going to learn about how to remove the last…

How to remove the first character of a string in Ruby

In this tutorial, we are going to learn about how to remove the first…

How to check if a ENV variable is defined in Ruby

In this tutorial, we are going to learn about how to check if a…

Get the last n characters of a string in Ruby

In this tutorial, we are going to learn about how to get the last n…

How to round a float value to N decimal places in Ruby

In this tutorial, we are going to learn about How to round a float…