Infobox Software name = Interactive Ruby Shell logo =
caption = developer = Keiju Ishitsuka latest release version = 0.9.5 latest release date = release date|2007|02|13 operating system = Cross-platform platform = Ruby interpreter programming language = Ruby genre = Rubyshell license = [http://www.ruby-lang.org/en/about/license.txt/ Ruby License] GNU General Public License website = http://www.ruby-lang.org/en/
Interactive Ruby Shell (IRB) is a shell for programming in the object-orientedscripting language Ruby. IRB is run from the command line and allows the programmer to experiment with code in real time. It allows you to enter Ruby commands at the prompt and have the interpreter respond immediately. 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. It was developed by Keiju Ishitsuka.
Example usage:irb(main):001:0> n = 5=> 5irb(main):002:0> def fact(n)irb(main):003:1> if n <= 1irb(main):004:2> 1irb(main):005:2> elseirb(main):006:2* n * fact(n - 1)irb(main):007:2> endirb(main):008:1> end=> nilirb(main):009:0> fact(n)=> 120
ee also
* Comparison of computer shells
External links
* [http://www.rubycentral.com/pickaxe/trouble.html "When Trouble Strikes"] chapter from "Programming Ruby" * [http://www.rubycentral.com/pickaxe/irb.html "Interactive Ruby Shell"] chapter from "Programming Ruby" * [http://tryruby.hobix.com/ Try Ruby!] —An interactive tutorial and Ruby shell within your browser. * [http://showmedo.com/videos/video?name=rubyLakeIrbCompletion Enabling Tab Completion in IRB]
Interactive Ruby — ou irb est un interpréteur de commandes qui permet d exécuter des commandes Ruby de manière interactive. Il peut être utilisé pour tester le langage. Il est fourni avec la version officielle de Ruby. Une version existe également sur le Web[1].… … Wikipédia en Français
Ruby — Класс языка: мультипарадигмальный: динамический, объектно ориентиров … Википедия
Ruby MRI — Ruby Developer(s) Yukihiro Matsumoto (among others) Stable release 1.9.2 / August 18, 2010; 14 months ago (2010 08 18) … Wikipedia
Shell (computing) — A shell is a piece of software that provides an interface for users of an operating system which provides access to the services of a kernel. However, the term is also applied very loosely to applications and may include any software that is… … Wikipedia
Ruby — Este artículo trata sobre el lenguaje de programación. Para la notación de ayuda a la lectura, véase Carácter ruby. Ruby Desarrollador(es) Comunidad de desarrolladores de Ru … Wikipedia Español
Ruby (Programmiersprache) — Ruby Offizielles Logo Basisdaten Paradigmen: multiparadigmatisch Erscheinungsjahr: 1995 … Deutsch Wikipedia
why's (poignant) Guide to Ruby — why s foxes why s (poignant) Guide to Ruby, sometimes called w(p)GtR or just the poignant guide , is an introductory book to the Ruby programming language, written by why the lucky stiff. The book is distributed under the Creative Commons… … Wikipedia
Perl Shell — Infobox Software name = Perl Shell latest release version = 1.8.1 latest release date = July 20, 2007 operating system = Various use = UNIX shell license = GNU General Public License and Artistic License website =… … Wikipedia