Interactive Ruby Shell

Interactive Ruby Shell
Interactive Ruby Shell
Interactive Ruby Shell.png
Тип

командная оболочка

Разработчик

Keiju Ishitsuka

Написана на

Ruby

Операционная система

Linux, Mac OS X и др. UNIX-подобные

Последняя версия

0.9.5

Состояние

активное

Лицензия

лицензия Ruby, GNU GPL

Сайт

www.ruby-lang.org

Interactive Ruby Shell (IRB) — это командная оболочка для программирования на объектно-ориентированном языке Ruby. Программа запускается из командной строки и позволяет выполнять команды языка Руби в реальном времени. Поддерживается история команды, редактирование, возможность обращаться к веб-сайтам и локальному веб-серверу. Программа была разработана Кэйдзю Исицукой.

Использование:

irb [ опции ] [ имя файла ] [ аргумент... ]

Пример использования:

irb(main):001:0> n = 5
=> 5
irb(main):002:0> def fact(n)
irb(main):003:1>   if n <= 1
irb(main):004:2>     1
irb(main):005:2>   else
irb(main):006:2*     n * fact(n - 1)
irb(main):007:2>   end
irb(main):008:1> end
=> nil
irb(main):009:0> fact(n)
=> 120

См. также

Ссылки


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Полезное


Смотреть что такое "Interactive Ruby Shell" в других словарях:

  • Interactive Ruby Shell — 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… …   Wikipedia

  • 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

  • Ruby on Rails — Ruby on Rails …   Википедия

  • 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


Поделиться ссылкой на выделенное

Прямая ссылка:
Нажмите правой клавишей мыши и выберите «Копировать ссылку»