Ruby ist eine 1995 erstmals öffentlich vorgestellte objektorientierte Programmiersprache. Der Autor war zunächst Yukihiro "Matz" Matsumoto, inzwischen wird Ruby jedoch von vielen Freiwilligen weltweit weiterentwickelt. Ruby hat seine Wurzeln in Perl, Smalltalk, Python, LISP und CLU.
Merkmale der Sprache
- Einfache Syntax
- Komplett Objektorientiert
- Reguläre Ausdrücke werden unterstützt
- Hohe Portabilität (z.B. Unix, MS Windows, DOS, Mac OS X, OS/2, Amiga usw.)
- Steht unter der GPL
Programmbeispiel
# Execute the following block of code 10 times 10.times { string1 = "Hello world".gsub(" ", ", ") # Replace ' ' with ', ' and store in string1 string1 += "!" # append "!" to variable string1 puts string1 # print variable string1, followed by a newline }* Programming Ruby - The Pragmatic Programmer's Guide. David Thomas, Andrew Hunt. ISBN 0-201-71089-7Bücher
* http://www.ruby-lang.org/en/ - Ruby Homepage * http://www.rubycentral.com/faq/rubyfaqall.html - Ausführliches FAQ, allerdings auf Englisch * http://www.rubygarden.org/ - Ruby GardenLinks