What is A REPL in Ruby? (IRB, Pry & More)

REPL stands for Read-Eval-Print-Loop. It’s a program that allows you to type Ruby code & see the result directly. One popular REPL is irb. Another is pry. They’re useful because you can quickly test how some Ruby code works. For example: If you’re trying to convert an array of strings into an array of integers. … Read more

How to Run System Commands From Ruby

If you want to run an external command from Ruby… …like wkhtmltopdf to convert an HTML file into a PDF. There are a few Ruby methods you can use. Depending on the method you use you’ll get different results. Let’s explore these methods together! The Ruby System Method The Ruby system method is the simplest … Read more