A REPL - Read, Eval, Print, Loop, is an interactive shell for a programming language to evaluate expressions in the language. REPLs are a great way to learn a language, it's syntax, and APIs.
Most programming languages have a REPL of its own or a community-built tool written for the same purpose. For Ruby, it's IRB - Interactive Ruby Shell, that lets you play with Ruby in seconds and start experimenting with its features.
IRB comes bundled with Ruby and can be launched from the command line using the command irb
. It provides command history, line editing, and executing Ruby programs from inside it. However, we aren't going to talk about IRB today. Instead, I want to focus on an alternative, called pry, and what it brings to the table. We'll see some nifty features that Pry is packed with today.
Continue reading %Pry: A Simple Start%
by Vinoth via SitePoint
No comments:
Post a Comment