Practical solutions

Ruby Howtos How-To Guides

Solve the problem. Keep building. Collection of Ruby how-to articles

Find the answer you need

Browse practical solutions, grouped by the task you're working on.

__COUNT__ entries on this page

Fibonacci Sequence in RubyThis tutorial demonstrates what the Fibonacci sequence is in Ruby. Why Is It Bad to Rescue Exception in RubyIn this tutorial, we will learn the reasons why it is bad practice to rescue exceptions in Ruby. Named Parameters in RubyIn this tutorial, we will learn all about named parameters in Ruby. How to Merge Ruby HashesIn this tutorial, we will understand how to merge Ruby hashes. How to Execute Ruby Files and Commands in ConsoleThis tutorial will discuss how to execute Ruby files and commands in console. How to Map an Array With Index in RubyThis tutorial shows different ways of mapping an array with index in Ruby. How to Convert Array to Hash in RubyThis short ruby tutorial will discuss how to convert an array in Ruby to hash. How to Get Substring in RubyThis tutorial demonstrates how to get a substring in Ruby. New Line in RubyThis article will explain the new line in ruby and its methods in Ruby. How to Merge Arrays in RubyIn this article, we will discuss the different methods used for merging arrays into a single array in Ruby. Is Ruby Single ThreadedThis tutorial will look into the details of Ruby's threading model and answer the question: is Ruby single threaded. How to Convert Array to String in RubyThis article introduces how to convert an array to a string in Ruby. How to Iterate Through a Ruby ArrayDifferent ways of iterating through an array in Ruby. How to Check if Value Exists in Array in RubyThis article shows how we can check whether a value exists in array. How to Sum an Array of Numbers in RubyThis article introduces how to sum an array of numbers in Ruby. How to Check Whether a String Contains a Substring in RubyIn this article, we will explore the methods on how to check whether a string contains a substring in Ruby, discussing their syntax and functionality. How to Concatenate Strings in RubyIn this article, we'll discuss the different ways on how to concatenate strings in Ruby. How to Write a Switch Statement in RubyIn this article, we'll discuss how to write a switch statement in Ruby. How to Write One Line if Statement in RubyThis article shows how to write one line if statement in Ruby. How to Remove an Array Element in RubyThis article shows how to remove an array element in Ruby. How to Add an Item to a Ruby HashA short article that discuss on how to add an item to a Hash in Ruby programming language. How to Trim a String Without Creating a New String in RubyThis article shows the different methods on how to trim a string without creating a new string in Ruby. How to Execute Shell Commands in RubyThis article introduces the various methods to call shell commands in a Ruby program. How to Capitalize String in RubyA short tutorial about different methods on how to capitalize a string in Ruby.