Interactive Ruby Shell

Last updated
Interactive Ruby Shell
Developer(s) Keiju Ishitsuka
Stable release
1.2.4 / May 2, 2020;2 years ago (2020-05-02) [1]
Repository
Written in Ruby
Operating system Cross-platform
Platform Ruby interpreter
Type Ruby shell
License Ruby License
BSD License
Website www.ruby-lang.org/en/

Interactive Ruby Shell (IRB or irb) is a REPL for programming in the object-oriented scripting language Ruby. The abbreviation irb is a portmanteau of the word "interactive" and the filename extension for Ruby files, ".rb".

Contents

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. It was developed by Keiju Ishitsuka.

Syntax and use

Syntax:

irb [ options ] [ programfile ] [ argument... ]

Example:

irb(main):001:0> n=5=> 5irb(main):002:0> deffact(n)irb(main):003:1> ifn<=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=> :factirb(main):009:0> fact(n)=> 120irb(main):001:0> classCatirb(main):002:1> defmeowirb(main):003:2> puts'Meow!'irb(main):004:2> endirb(main):005:1> end=> :meowirb(main):006:0> Cat.new.meowMeow!

See also

Related Research Articles

In computing, type introspection is the ability of a program to examine the type or properties of an object at runtime. Some programming languages possess this capability.

<i>Cyborg 009</i> Japanese media franchise based on a manga of the same name

Cyborg 009 is a Japanese science fiction manga created by Shotaro Ishinomori. It was serialized in many different Japanese magazines, including Monthly Shōnen King, Weekly Shōnen Magazine, Shōnen Big Comic, COM, Shōjo Comic, Weekly Shōnen Sunday, Monthly Shōnen Jump, and Monthly Comic Nora. In 2012, comiXology acquired the digital distribution rights to Shotaro Ishinomori's catalogue, including Cyborg 009.

Library Hotel by Library Hotel Collection is a 60-room boutique hotel in New York City, located at 299 Madison Avenue, near the New York Public Library Main Branch, Bryant Park, and Grand Central Terminal. The hotel was designed by architect Stephen B. Jacobs.

<span class="mw-page-title-main">Global Underground</span>

Global Underground is a British record label and compilation series founded in 1996 by Andy Horsfield and James Todd. The label symbolised the international explosion of dance music during the 1990s, 2000s, and 2010s and first manifesto for high-end DJs such as Tony De Vit, Sasha, Paul Oakenfold, John Digweed, Danny Tenaglia, Nick Warren, Dave Seaman, Darren Emerson, James Lavelle, Carl Cox, and Solomun.

In computer programming, an entry point is the place in a program where the execution of a program begins, and where the program has access to command line arguments.

doctest is a module included in the Python programming language's standard library that allows the easy generation of tests based on output from the standard Python interpreter shell, cut and pasted into docstrings.

Catbird Records is an independent record label formed in September 2005 in Columbus, Ohio. It is based in New York City. It was founded and is run by Ryan Catbird of music blog The Catbirdseat. The label is financed solely by advertising revenue generated by the Catbirdseat music blog.

<span class="mw-page-title-main">Tyrrell 003</span>

The Tyrrell 003 is a Formula One (F1) racing car which was designed by Tyrrell's Chief Designer, Derek Gardner and used in the 1971 and 1972 F1 seasons. It was effectively the same car as the Tyrrell 001, with a redesigned nose section, longer wheelbase and narrower monocoque. Tyrrell 003 was a one-off design, its type number also serving as its Tyrrell chassis number. François Cevert drove the Tyrrell 002.

<span class="mw-page-title-main">Tyrrell 006</span>

The Tyrrell 006 was a Formula One car designed and built by the Tyrrell Racing Organisation. It was introduced towards the end of 1972. In the hands of Jackie Stewart it won the Drivers' Championship for the 1973 Formula One season, Stewart's third and final title. The car was first raced at the 1972 Canadian Grand Prix with Stewart's teammate and protégé François Cevert at the wheel. The 006 was a very slightly reworked version of the preceding Tyrrell 005 car, but in contrast it was the first Tyrrell-built models to be replicated, the number 006 becoming a model- rather than chassis-number; previous Tyrrells were one-off constructions. In total there were three Tyrrell 006 chassis built: 006; 006/2; and 006/3. The 006 model was gradually phased out in the early part of the 1974 Formula One season as Tyrrell constructed the succeeding Tyrrell 007.

Ronald "Ron" Trent is an American house music DJ and record producer.

In Trance We Trust (ITWT) is a Dutch record label owned by Tijs Verwest and Arny Bink. It is a sublabel of Black Hole Recordings, established in 1998 and best known for its clubbier and a little harder side of trance music, and for its compilation of the same name.

Fuzzy Logic Recordings is a Canadian independent record label, founded in 2002 and based out of Toronto, Ontario.

A symbol in computer programming is a primitive data type whose instances have a unique human-readable form. Symbols can be used as identifiers. In some programming languages, they are called atoms. Uniqueness is enforced by holding them in a symbol table. The most common use of symbols by programmers is for performing language reflection, and most common indirectly is their use to create object linkages.

The Simulation Interoperability Standards Organization (SISO) is an organization dedicated to the promotion of modeling and simulation interoperability and reuse for the benefit of diverse modeling and simulation communities, including developers, procurers, and users, worldwide.

As a candidate country of the European Union, North Macedonia (MK) is included in the Nomenclature of Territorial Units for Statistics (NUTS). The three NUTS levels are:

<span class="mw-page-title-main">DR Class E 251</span>

The East German electric locomotives of DR Class E 251(from 1970: 251, DBAG Class 171) were not standard engines either within the Deutsche Reichsbahn's or subsequently the Deutsche Bahn's fleet, due to the different specification of their electrical system. They were only used on the Blankenburg (Harz) – Königshütte line. Because this line had steep inclines, but connecting this isolated branch to the main traction network would have been very expensive, the Deutsche Reichsbahn electrified it in 1965 with a 25 kV 50 Hz system, which was different from the usual German catenary supply of 15 kV 16⅔ Hz. The 15 Co’Co’ engines were supplied by LEW and registered with the Reichsbahn as E 251 001 to 015.

All Life Records was a French jazz record label.

Eulim or ilm is a chemistry library written in Ruby under the MIT license. It supports the calculation of molecular mass of compound, balancing chemical equations, efficient handling of states of chemical species and many more things.

The DB Class 670 is a double-decker diesel railbus. It was created on request of the Deutsche Bahn by the Dessau and Halle-Ammendorf factories of the Deutsche Waggonbau AG (DWA) It has two axles and the construction re-used motorbus components.

References

  1. "All versions of irb". RubyGems.org. Retrieved 2020-07-06.