Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.08 KB

irb.adoc

File metadata and controls

38 lines (27 loc) · 1.08 KB

Get start with Interactive Ruby (irb)

Overview

Interactive Ruby Shell (IRB or irb) is a REPL for programming in the object-oriented scripting language Ruby. The abbreviation irb comes from the fact that the filename extension for Ruby is .rb, although interactive Ruby files do not have an extension of .irb.

The program is launched from a command line and allows the execution of Ruby commands with immediate response, experimenting in real-time. It features command history, line editing capabilities, and job control, and is able to communicate directly as a shell script over the Internet and interact with a live server.

Note
irb was developed by Keiju Ishitsuka.

Try yourself

In your terminal or shell, just type following

irb

Then, start playing with Ruby lines as

puts "Hello World"
puts 120
puts 15/2
puts 15.0/2

Previous Topic

Go back to Install Ruby

Table of Content