{{Infobox Software
| name = Interactive Ruby Shell
| logo =
| screenshot =
| caption = The screenshot session as same as the article example
| collapsible = yes
| developer = Keiju Ishitsuka
| latest release version = 0.9.6
| latest release date = Juni 2009
Interactive Ruby Shell (IRB) is a shell for programming in the :en:object-oriented en:scripting language Ruby. The program is launched from a :en:command line and allows the execution of Ruby commands with immediate response, experimenting in real-time. It features en:command history, line editing capabilities, and :en:job control, and is able to communicate directly as a en:shell script over the Internet and interact with a live server. It was developed by en: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]] [[el:Interactive Ruby Shell]] [[en:Interactive Ruby Shell]] [[fr:Interactive Ruby]] [[ru:Interactive Ruby Shell]]