Content deleted Content added
No edit summary |
tidy |
||
Line 17:
}}
'''Interactive Ruby Shell''' ('''IRB''' or '''irb''') is a [[REPL]] for programming in the [[Object-oriented programming|object-oriented]] [[scripting language]] [[Ruby (programming 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 interface|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 (Unix)|job control]], and is able to communicate directly as a [[shell script]] over the Internet and interact with a live server. It was developed by [[Keiju Ishitsuka]]. ==Syntax and use==
Syntax:
irb [ options ] [ ''programfile'' ] [ ''argument...'' ]
Example
<source lang="irb">
irb(main):001:0> n = 5
|