Blog

Page 593 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for rbenv not changing ruby version

rbenv not changing ruby version

Published on September 2, 2023

πŸ” **Unlocking the Mysteries of Rbenv Not Changing Ruby Version** πŸ” So, you're trying to switch Ruby versions using rbenv, but it seems to be stuck on a specific version like a stubborn mule? Don't worry, you're not alone! Many developers have encountere

Cover Image for Ruby: Calling class method from instance
class-method

Ruby: Calling class method from instance

Published on September 2, 2023

# How to Call a Class Method from an Instance in Ruby Have you ever found yourself needing to call a class method from one of its instances in Ruby? It can be a bit confusing at first, but fear not! In this blog post, we will explore the common issues sur

Cover Image for How to find where gem files are installed

How to find where gem files are installed

Published on September 2, 2023

πŸ“ **Title**: Unveiling the Mystery: How to Track Down Gem Files' Hidden Location πŸ’Ž πŸ‘‹ Hey there, tech enthusiasts! We've all been thereβ€”surveying our computer, trying to locate those elusive gem files. You've probably wondered how to find where your fav

Cover Image for How can I delete one element from an array by value
arrays

How can I delete one element from an array by value

Published on September 2, 2023

# πŸš€ Deleting an Element from an Array by Value in Ruby! πŸ’Ž So you've come across a situation where you have an array in Ruby and need to delete a specific element from it. No worries, we're here to help you out! 😊 In this blog post, we'll discuss common

Cover Image for Uninstall old versions of Ruby gems

Uninstall old versions of Ruby gems

Published on September 2, 2023

# Uninstalling Old Versions of Ruby Gems: Clean up and Streamline Your Development Environment πŸ’Ž So, you've become a Ruby gem hoarder and now you want to clean up the clutter? Don't worry, we've got you covered! In this post, we'll walk you through the

Cover Image for Ruby, Difference between exec, system and %x() or Backticks

Ruby, Difference between exec, system and %x() or Backticks

Published on September 2, 2023

# πŸš€ The Ruby Command Executives: exec, system, %x() or Backticks Are you feeling confused about the different ways to execute terminal commands in Ruby? πŸ€” Don't worry! We've got your back with a clear explanation of the differences between `exec`, `syst

Cover Image for How to map and remove nil values in Ruby

How to map and remove nil values in Ruby

Published on September 2, 2023

# How to Map and Remove Nil Values in Ruby πŸ—ΊοΈ So you have a list that you want to transform using a `map` function in Ruby, but sometimes the transformation results in `nil` values. And now you want to remove these `nil` entries from the list, without ke

Cover Image for Get names of all files from a folder with Ruby
directoryfilefilenames

Get names of all files from a folder with Ruby

Published on September 2, 2023

# πŸ“‚ Get Names of All Files from a Folder with Ruby Do you need to retrieve all the file names from a folder using Ruby? πŸ€” Look no further! In this guide, we'll walk you through how to accomplish this task step by step. Let's dive in! πŸ’»πŸ” ## The Challe

Cover Image for What does ||= (or-equals) mean in Ruby?
operators

What does ||= (or-equals) mean in Ruby?

Published on September 2, 2023

# What Does ||= (or-equals) Mean in Ruby? πŸ€”πŸ’Ž Have you ever come across the peculiar `||=` syntax in Ruby and wondered what it does? Fear not! In this blog post, we'll dive deep into the world of ||=, also known as the "or-equals" operator. By the end, y

Blog | Matheus Mello