Interactive Ruby Shell
Erscheinungsbild
Interactive Ruby Shell (irb)
| |
---|---|
![]() So sieht irb bei der Verwendung aus... | |
Basisdaten
| |
Entwickler | Keiju Ishitsuka |
Aktuelle Version | 0.9.6 (30. Juni 2009) |
Betriebssystem | plattformunabhängig |
Programmiersprache | Ruby |
Kategorie | Ruby Kommandozeileninterpreter |
Lizenz | Ruby Lizenz[1] GNU General Public License |
deutschsprachig | nein |
ruby-lang.org |
Interactive Ruby Shell (IRB) ist eine :en:shell für die Programmierung der objektorientierten Skriptsprache Ruby. The program is launched from a Kommandozeile and allows the execution of Ruby commands with immediate response, experimenting in real-time. It features en:command history (kein de), line editing capabilities, and [Job (EDV)|Job Control (Unix)]], and is able to communicate directly as a en:shell script over the Internet and interact with a live server. It was developed by Keiju Ishitsuka. Program usage:
irb [ options ] [ programfile ] [ argument... ]
Beispiel:
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
Siehe auch
Weblinks
- "Try Ruby" Online IRB
- "When Trouble Strikes" Kapitel aus Programming Ruby
- "Interactive Ruby Shell" Kapitel aus Programming Ruby
[[Kategorie:Programmiersprache Ruby]] [[Kategorie:Shell]] [[el:Interactive Ruby Shell]] [[en:Interactive Ruby Shell]] [[fr:Interactive Ruby]] [[ru:Interactive Ruby Shell]]
- ↑ Rubys Lizenzbedingungen. Abgerufen am 15. Januar 2012.